mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
- Add PolicyLengthConfig struct with max_col, max_file_bytes, and max_lines fields, replacing hardcoded constants in the lexer. - Add Engine::set_policy_length_config and clear_policy_length_config to allow callers to override the default limits. - Add Source::from_contents_with_limits and from_file_with_limits for direct Source construction with custom limits; existing from_contents and from_file signatures are preserved using defaults. - Add tests for default rejection, custom limits, and engine plumbing. - Add bindings for C, C++, Python, WASM/JS, Java, Ruby, C#, Go
24 lines
631 B
TOML
24 lines
631 B
TOML
[package]
|
|
name = "regorusrb"
|
|
version = "0.9.1"
|
|
edition = "2024"
|
|
description = "Ruby bindings for Regorus - a fast, lightweight Rego interpreter written in Rust"
|
|
license = "MIT AND Apache-2.0 AND BSD-3-Clause"
|
|
publish = false
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
path = "src/lib.rs"
|
|
|
|
[features]
|
|
default = ["ast", "coverage", "regorus/std", "regorus/full-opa"]
|
|
ast = ["regorus/ast"]
|
|
coverage = ["regorus/coverage"]
|
|
|
|
[dependencies]
|
|
magnus = { version = "0.8.2" }
|
|
regorus = { path = "../../../..", default-features = false, features = ["arc"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1.0.140"
|
|
serde_magnus = "0.11.0"
|