Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions biscuit-auth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ homepage = "https://github.com/biscuit-auth/biscuit"
repository = "https://github.com/biscuit-auth/biscuit-rust"

[features]
default = ["regex-full", "datalog-macro", "pem"]
default = ["regex-full", "datalog-macro", "default-backend-pem"]
default-backend = ["dep:ed25519-dalek", "dep:p256"]
default-backend-pem = ["default-backend", "pem", "ed25519-dalek/pem", "ed25519-dalek/pkcs8"]
awslc-backend = ["dep:aws-lc-rs", "dep:aws-lc-sys"]
regex-full = ["regex/perf", "regex/unicode"]
wasm = ["wasm-bindgen"]
# used by biscuit-wasm to serialize errors to JSON
Expand All @@ -23,13 +26,11 @@ bwk = ["chrono", "serde"]
docsrs = []
uuid = ["dep:uuid"]
# used to expose pem/der loaders for keypairs
pem = ["ed25519-dalek/pem", "ed25519-dalek/pkcs8"]
pem = []

[dependencies]
rand_core = "^0.6"
sha2 = "^0.9"
prost = "0.10"
prost-types = "0.10"
regex = { version = "1.5", default-features = false, features = ["std"] }
nom = { version = "7", default-features = false, features = ["std"] }
hex = "0.4"
Expand All @@ -38,21 +39,20 @@ thiserror = "1"
rand = { version = "0.8" }
wasm-bindgen = { version = "0.2", optional = true }
base64 = "0.13.0"
ed25519-dalek = { version = "2.0.0", features = ["rand_core", "zeroize"] }
ed25519-dalek = { version = "2.0.0", features = ["rand_core", "zeroize"], optional = true }
serde = { version = "1.0.132", optional = true, features = ["derive"] }
getrandom = { version = "0.2.15" }
time = { version = "0.3.7", features = ["formatting", "parsing"] }
uuid = { version = "1", optional = true }
biscuit-parser = { version = "0.2.0", path = "../biscuit-parser" }
biscuit-quote = { version = "0.3.0", optional = true, path = "../biscuit-quote" }
chrono = { version = "0.4.26", optional = true, default-features = false, features = [
"serde",
"serde",
] }
serde_json = "1.0.117"
ecdsa = { version = "0.16.9", features = ["signing", "verifying", "pem", "alloc", "pkcs8", "serde"] }
p256 = "0.13.2"
pkcs8 = "0.9.0"
elliptic-curve = { version = "0.13.8", features = ["pkcs8"] }
p256 = { version = "0.13.2", optional = true }
pkcs8 = { version = "0.10.2", features = ["pem"] }
aws-lc-rs = { version = "1.16.0", optional = true }
aws-lc-sys = { version = "0.37.1", optional = true }

[dev-dependencies]
bencher = "0.1.5"
Expand Down
Loading