-
Notifications
You must be signed in to change notification settings - Fork 79
/
Cargo.toml
66 lines (58 loc) · 2.09 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[package]
name = "cedar-policy-validator"
edition.workspace = true
rust-version.workspace = true
version.workspace = true
license.workspace = true
categories.workspace = true
description = "Validator for the Cedar Policy language."
keywords.workspace = true
homepage.workspace = true
repository.workspace = true
[dependencies]
cedar-policy-core = { version = "=4.1.0", path = "../cedar-policy-core" }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", features = ["preserve_order"] }
serde_with = "3.0"
miette = "7.1.0"
thiserror = "2.0"
itertools = "0.13"
ref-cast = "1.0"
unicode-security = "0.1.0"
smol_str = { version = "0.3", features = ["serde"] }
stacker = "0.1.15"
arbitrary = { version = "1", features = ["derive"], optional = true }
lalrpop-util = { version = "0.22.0", features = ["lexer", "unicode"] }
lazy_static = "1.4.0"
nonempty = "0.10.0"
# wasm dependencies
serde-wasm-bindgen = { version = "0.6", optional = true }
tsify = { version = "0.4.5", optional = true }
wasm-bindgen = { version = "0.2.82", optional = true }
# protobuf dependency
prost = { version = "0.13.3", optional = true }
[features]
# by default, enable all Cedar extensions
default = ["ipaddr", "decimal", "datetime"]
# when enabling a feature, make sure that the Core feature is also enabled
ipaddr = ["cedar-policy-core/ipaddr"]
decimal = ["cedar-policy-core/decimal"]
datetime = ["cedar-policy-core/datetime"]
partial-eval = ["cedar-policy-core/partial-eval"]
# Enables `Arbitrary` implementations for several types in this crate
arbitrary = ["dep:arbitrary", "cedar-policy-core/arbitrary"]
# Experimental features.
partial-validate = []
level-validate = []
wasm = ["serde-wasm-bindgen", "tsify", "wasm-bindgen"]
protobufs = ["dep:prost", "dep:prost-build"]
entity-manifest = []
[dev-dependencies]
similar-asserts = "1.5.0"
cool_asserts = "2.0"
cedar-policy-core = { version = "=4.1.0", path = "../cedar-policy-core", features = ["test-util"] }
miette = { version = "7.1.0", features = ["fancy"] }
[build-dependencies]
lalrpop = "0.22.0"
# protobuf dependency
prost-build = { version = "0.13.3", optional = true }