# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.77" name = "cedar-policy" version = "4.2.2" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Cedar is a language for defining permissions as policies, which describe who should have access to what." homepage = "https://cedarpolicy.com" readme = "README.md" keywords = [ "cedar", "authorization", "policy", "security", ] categories = [ "compilers", "config", ] license = "Apache-2.0" repository = "https://github.com/cedar-policy/cedar" [package.metadata.docs.rs] features = ["experimental"] rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "cedar_policy" crate-type = [ "rlib", "cdylib", ] path = "src/lib.rs" [[test]] name = "public_interface" path = "tests/public_interface.rs" [[bench]] name = "attr_errors" path = "benches/attr_errors.rs" harness = false [[bench]] name = "cedar_benchmarks" path = "benches/cedar_benchmarks.rs" harness = false [[bench]] name = "deeply_nested_est" path = "benches/deeply_nested_est.rs" harness = false [[bench]] name = "entity_attr_errors" path = "benches/entity_attr_errors.rs" harness = false [[bench]] name = "extension_fn_validation" path = "benches/extension_fn_validation.rs" harness = false [dependencies.cedar-policy-core] version = "=4.2.2" [dependencies.cedar-policy-formatter] version = "=4.2.2" [dependencies.cedar-policy-validator] version = "=4.2.2" [dependencies.dhat] version = "0.3.2" optional = true [dependencies.itertools] version = "0.13" [dependencies.lalrpop-util] version = "0.22.0" features = ["lexer"] [dependencies.lazy_static] version = "1.5.0" [dependencies.miette] version = "7.1.0" [dependencies.nonempty] version = "0.10" [dependencies.ref-cast] version = "1.0" [dependencies.semver] version = "1.0.23" [dependencies.serde] version = "1.0" features = [ "derive", "rc", ] [dependencies.serde-wasm-bindgen] version = "0.6" optional = true [dependencies.serde_json] version = "1.0" [dependencies.serde_with] version = "3.3.0" [dependencies.smol_str] version = "0.3" features = ["serde"] [dependencies.thiserror] version = "1.0" [dependencies.tsify] version = "0.4.5" optional = true [dependencies.wasm-bindgen] version = "0.2.82" optional = true [dev-dependencies.cedar-policy-core] version = "=4.2.2" features = ["test-util"] [dev-dependencies.cool_asserts] version = "2.0" [dev-dependencies.criterion] version = "0.5" [dev-dependencies.globset] version = "0.4" [dev-dependencies.miette] version = "7.1.0" features = ["fancy"] [dev-dependencies.oorandom] version = "11.1" [dev-dependencies.proptest] version = "1.0.0" [features] corpus-timing = [] decimal = [ "cedar-policy-core/decimal", "cedar-policy-validator/decimal", ] default = [ "ipaddr", "decimal", ] entity-manifest = ["cedar-policy-validator/entity-manifest"] experimental = [ "partial-eval", "permissive-validate", "partial-validate", "level-validate", "entity-manifest", ] heap-profiling = ["dep:dhat"] ipaddr = [ "cedar-policy-core/ipaddr", "cedar-policy-validator/ipaddr", ] level-validate = ["cedar-policy-validator/level-validate"] partial-eval = [ "cedar-policy-core/partial-eval", "cedar-policy-validator/partial-eval", ] partial-validate = ["cedar-policy-validator/partial-validate"] permissive-validate = [] wasm = [ "serde-wasm-bindgen", "tsify", "wasm-bindgen", ]