Cargo Features

[dependencies]
cedar-policy = { version = "4.7.0", default-features = false, features = ["ipaddr", "decimal", "datetime", "heap-profiling", "corpus-timing", "experimental", "entity-manifest", "partial-eval", "permissive-validate", "partial-validate", "protobufs", "wasm", "tolerant-ast", "extended-schema", "deprecated-schema-compat", "tpe", "variadic-is-in-range"] }
default = datetime, decimal, ipaddr

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

ipaddr default

Cedar extensions

Enables ipaddr of cedar-policy-core

decimal default

Enables decimal of cedar-policy-core

datetime default

Enables datetime of cedar-policy-core

heap-profiling

Features for memory or runtime profiling

Enables dhat

corpus-timing
experimental = deprecated-schema-compat, entity-manifest, extended-schema, partial-eval, partial-validate, permissive-validate, protobufs, tolerant-ast, tpe, variadic-is-in-range

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

entity-manifest experimental?

Enables entity-manifest of cedar-policy-core

Affects err::EntityManifestError, api::compute_entity_manifest

partial-eval experimental?

Enables partial-eval of cedar-policy-core

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-core

cedar-policy-core:

Experimental features.

protobufs experimental?

Enables nonempty, prost, and prost-build

Affects cedar-policy::proto

wasm = tsify, wasm-bindgen
tolerant-ast experimental?

Enables tolerant-ast of cedar-policy-core and cedar-policy-formatter

extended-schema experimental?

Enables extended-schema of cedar-policy-core

deprecated-schema-compat experimental?

Not exactly experimental but rather a feature for supporting deprecated parsing behavior. API is stable, but hopefully will be removed in a future release.

tpe experimental?

Enables tpe of cedar-policy-core

Affects err::PartialRequestCreationError, err::TPEReauthorizationError, err::PermissionQueryError

variadic-is-in-range experimental?

Enables variadic-is-in-range of cedar-policy-core

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.

tsify wasm?

Enables tsify ^0.4.5

wasm dependencies
Intentionally not updated to 0.5.5, see issue #1744

wasm-bindgen wasm?