Cargo Features

[dependencies]
cedar-policy = { version = "4.2.2", default-features = false, features = ["ipaddr", "decimal", "heap-profiling", "corpus-timing", "experimental", "entity-manifest", "partial-eval", "permissive-validate", "partial-validate", "level-validate", "wasm"] }
default = decimal, ipaddr

by default, enable all Cedar extensions, but not other crate features

ipaddr default

Cedar extensions

Enables ipaddr of cedar-policy-core and cedar-policy-validator

decimal default

Enables decimal of cedar-policy-core and cedar-policy-validator

heap-profiling

Features for memory or runtime profiling

Enables dhat

corpus-timing
experimental = entity-manifest, level-validate, partial-eval, partial-validate, permissive-validate

Experimental features. Enable all experimental features with cargo build --features "experimental"

entity-manifest experimental?

Enables entity-manifest of cedar-policy-validator

Affects err::EntityManifestError, api::compute_entity_manifest

partial-eval experimental?

Enables partial-eval of cedar-policy-core and cedar-policy-validator

Affects api::PartialResponse, api::RequestBuilder, api::UnsetSchema, is_authorized::is_authorized_partial, is_authorized::is_authorized_partial_json, is_authorized::is_authorized_partial_json_str, is_authorized::ResidualResponse, is_authorized::PartialAuthorizationAnswer, is_authorized::PartialAuthorizationCall

permissive-validate experimental?
partial-validate experimental?

Enables partial-validate of cedar-policy-validator

cedar-policy-validator:

Experimental features.

level-validate experimental?

Enables level-validate of cedar-policy-validator

wasm = serde-wasm-bindgen, tsify, wasm-bindgen

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

serde-wasm-bindgen wasm?

Enables serde-wasm-bindgen

wasm dependencies

tsify wasm?
wasm-bindgen wasm?