mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
- add Azure RBAC condition interpreter and builtin evaluation in core (expressions, parser updates, evaluator, and test harness) - introduce comprehensive RBAC YAML test suites and coverage for i - action/suboperation - strings - numbers - bools - IP - GUID - dates - times - lists - quantifiers (ForAnyOfAnyValues, ForAllOfAllValues) - expose RBAC evaluation through FFI with an `rbac` feature flag enabled by default - add C# `RbacEngine` wrapper + P/Invoke entrypoint and document usage in C# README - expand C# tests to execute all RBAC YAML cases with per-case logging - wire test assets into C# test output and centralize YAML dependency versions Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
52 lines
1.1 KiB
TOML
52 lines
1.1 KiB
TOML
[workspace]
|
|
|
|
[package]
|
|
name = "regorus-ffi"
|
|
version = "0.9.1"
|
|
edition = "2021"
|
|
license = "MIT AND Apache-2.0 AND BSD-3-Clause"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
[lib]
|
|
crate-type = ["cdylib", "staticlib"]
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
regorus = { path = "../..", default-features = false }
|
|
serde_json = "1.0.140"
|
|
parking_lot = { version = "0.12", optional = true }
|
|
|
|
[profile.release]
|
|
# Enable full debug info for optimized builds.
|
|
debug = "full"
|
|
# Split debuginfo into its own file to reduce binary size.
|
|
split-debuginfo = "packed"
|
|
lto = true
|
|
codegen-units = 1
|
|
|
|
[features]
|
|
default = [
|
|
"ast",
|
|
"azure_policy",
|
|
"std",
|
|
"coverage",
|
|
"allocator-memory-limits",
|
|
"rvm",
|
|
"rbac",
|
|
"regorus/arc",
|
|
"regorus/full-opa",
|
|
"contention_checks",
|
|
]
|
|
ast = ["regorus/ast"]
|
|
azure_policy = ["regorus/azure_policy"]
|
|
std = ["regorus/std"]
|
|
coverage = ["regorus/coverage"]
|
|
allocator-memory-limits = ["regorus/allocator-memory-limits"]
|
|
contention_checks = ["parking_lot"]
|
|
rvm = ["regorus/rvm"]
|
|
rbac = ["regorus/azure-rbac"]
|
|
custom_allocator = []
|
|
|
|
[build-dependencies]
|
|
cbindgen = "0.29.2"
|