# 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" name = "regorus" version = "0.2.8" build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = "A fast, lightweight Rego (OPA policy language) interpreter" readme = "README.md" keywords = [ "interpreter", "no_std", "opa", "policy-as-code", "rego", ] license-file = "LICENSE" repository = "https://github.com/microsoft/regorus" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [profile.release] debug = 2 [lib] name = "regorus" path = "src/lib.rs" doctest = false [[example]] name = "regorus" path = "examples/regorus.rs" test = false doctest = false harness = false [[test]] name = "aci" path = "tests/aci/main.rs" test = false harness = false [[test]] name = "arc" path = "tests/arc.rs" [[test]] name = "kata" path = "tests/kata/main.rs" test = false harness = false [[test]] name = "mod" path = "tests/mod.rs" [[test]] name = "opa" path = "tests/opa.rs" test = false harness = false required-features = ["full-opa"] [dependencies.anyhow] version = "1.0.45" default-features = false [dependencies.chrono] version = "0.4.31" optional = true [dependencies.chrono-tz] version = "0.10.0" optional = true [dependencies.constant_time_eq] version = "0.3.0" optional = true default-features = false [dependencies.data-encoding] version = "2.4.0" features = ["alloc"] optional = true default-features = false [dependencies.hex] version = "0.4.3" features = ["alloc"] optional = true default-features = false [dependencies.hmac] version = "0.12.1" optional = true default-features = false [dependencies.itertools] version = "0.13.0" optional = true default-features = false [dependencies.jsonschema] version = "0.26.1" optional = true default-features = false [dependencies.jsonwebtoken] version = "9.2.0" optional = true [dependencies.lazy_static] version = "1.4.0" default-features = false [dependencies.md-5] version = "0.10.6" optional = true default-features = false [dependencies.rand] version = "0.8.5" optional = true default-features = false [dependencies.regex] version = "1.10.2" optional = true default-features = false [dependencies.scientific] version = "0.5.2" [dependencies.semver] version = "1.0.20" optional = true default-features = false [dependencies.serde] version = "1.0.150" features = [ "derive", "rc", ] default-features = false [dependencies.serde_json] version = "1.0.89" features = ["alloc"] default-features = false [dependencies.serde_yaml] version = "0.9.16" optional = true default-features = false [dependencies.sha1] version = "0.10.6" optional = true default-features = false [dependencies.sha2] version = "0.10.8" optional = true default-features = false [dependencies.url] version = "2.5.0" optional = true [dependencies.uuid] version = "1.6.1" features = [ "v4", "fast-rng", ] optional = true default-features = false [dependencies.wax] version = "0.6.0" features = [] optional = true default-features = false [dev-dependencies.anyhow] version = "1.0.45" [dev-dependencies.cfg-if] version = "1.0.0" [dev-dependencies.clap] version = "4.4.7" features = ["derive"] [dev-dependencies.prettydiff] version = "0.7.0" default-features = false [dev-dependencies.serde_yaml] version = "0.9.16" [dev-dependencies.test-generator] version = "0.3.1" [dev-dependencies.walkdir] version = "2.3.2" [build-dependencies.anyhow] version = "1.0" [features] arc = ["scientific/arc"] ast = [] base64 = ["dep:data-encoding"] base64url = ["dep:data-encoding"] coverage = [] crypto = [ "dep:constant_time_eq", "dep:hmac", "dep:hex", "dep:md-5", "dep:sha1", "dep:sha2", ] default = [ "full-opa", "arc", ] deprecated = [] full-opa = [ "base64", "base64url", "coverage", "crypto", "deprecated", "glob", "graph", "hex", "http", "jwt", "jsonschema", "opa-runtime", "regex", "semver", "std", "time", "uuid", "urlquery", "yaml", ] glob = ["dep:wax"] graph = [] hex = ["dep:data-encoding"] http = [] jsonschema = ["dep:jsonschema"] jwt = [ "dep:jsonwebtoken", "dep:data-encoding", "dep:itertools", ] no_std = ["lazy_static/spin_no_std"] opa-no-std = [ "arc", "base64", "base64url", "coverage", "crypto", "deprecated", "graph", "hex", "no_std", "opa-runtime", "regex", "semver", "lazy_static/spin_no_std", ] opa-runtime = [] opa-testutil = [] rand = ["dep:rand"] regex = ["dep:regex"] rego-extensions = [] semver = ["dep:semver"] std = [ "rand/std", "rand/std_rng", "serde_json/std", ] time = [ "dep:chrono", "dep:chrono-tz", ] urlquery = ["dep:url"] uuid = ["dep:uuid"] yaml = ["serde_yaml"]