[package]
edition = "2021"
rust-version = "1.85"
name = "p47h-engine"
version = "0.11.1"
authors = ["p47h Team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core engine for p47h governance - pure library, no WASM artifact"
documentation = "https://docs.rs/p47h-engine"
readme = "README.md"
keywords = [
"governance",
"policy",
"identity",
"vault",
"wasm",
]
categories = [
"cryptography",
"authentication",
]
license = "Apache-2.0"
repository = "https://github.com/p47h-org/p47h-open-core"
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[features]
default = ["console_error_panic_hook"]
[lib]
name = "p47h_engine"
crate-type = ["rlib"]
path = "src/lib.rs"
[[test]]
name = "client_tests"
path = "tests/client_tests.rs"
[[test]]
name = "resource_tests"
path = "tests/resource_tests.rs"
[[test]]
name = "validation_tests"
path = "tests/validation_tests.rs"
[[test]]
name = "web_tests"
path = "tests/web_tests.rs"
[dependencies.argon2]
version = "0.5"
features = ["std"]
[dependencies.chacha20poly1305]
version = "0.10"
features = ["alloc"]
default-features = false
[dependencies.console_error_panic_hook]
version = "0.1"
optional = true
[dependencies.core-identity]
version = "0.11.1"
[dependencies.core-policy]
version = "0.11.1"
features = ["toml"]
[dependencies.ed25519-dalek]
version = "2.1"
features = [
"alloc",
"zeroize",
"rand_core",
]
default-features = false
[dependencies.getrandom]
version = "0.2"
features = ["js"]
[dependencies.hex]
version = "0.4"
[dependencies.js-sys]
version = "0.3"
[dependencies.rand]
version = "0.8.5"
features = [
"std",
"std_rng",
]
default-features = false
[dependencies.secrecy]
version = "0.8"
features = ["serde"]
[dependencies.serde]
version = "1.0"
features = [
"derive",
"alloc",
"derive",
]
default-features = false
[dependencies.serde-wasm-bindgen]
version = "0.6"
[dependencies.serde_json]
version = "1.0"
features = ["alloc"]
default-features = false
[dependencies.toml]
version = "0.8"
features = ["parse"]
default-features = false
[dependencies.wasm-bindgen]
version = "0.2"
[dependencies.web-sys]
version = "0.3"
features = [
"Window",
"Performance",
"console",
]
[dev-dependencies.wasm-bindgen-test]
version = "0.3"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(kani)"]