Cargo Features

[dependencies]
cedar-policy-core = { version = "4.3.0", default-features = false, features = ["ipaddr", "decimal", "datetime", "arbitrary", "test-util", "partial-eval", "wasm", "protobufs"] }
default = decimal, ipaddr

by default, enable all Cedar extensions

ipaddr default

Affects extensions::ipaddr

decimal default

Enables regex

decimal extension requires regex

Affects extensions::decimal

datetime

Enables chrono and regex

chrono:

datetime extension requires chrono

Affects extensions::datetime

arbitrary

Enables Arbitrary implementations for several types in this crate

Enables arbitrary

test-util

Expose test utilities

partial-eval

Experimental features.

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

Enables prost and prost-build

prost:

protobuf dependency

Affects ast::proto

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?