[package] name = "umbral-pre" version = "0.11.0" authors = ["Bogdan Opanchuk "] edition = "2021" license = "GPL-3.0-only" description = "Implementation of Umbral proxy reencryption algorithm" repository = "https://github.com/nucypher/rust-umbral/tree/master/umbral-pre" readme = "README.md" categories = ["cryptography", "no-std"] [dependencies] k256 = { version = "0.13", default-features = false, features = ["ecdsa", "arithmetic", "hash2curve"] } sha2 = { version = "0.10", default-features = false } chacha20poly1305 = { version = "0.10", default-features = false, features = ["alloc"] } hkdf = { version = "0.12", default-features = false } hex = { version = "0.4", default-features = false, features = ["alloc"] } serde = { version = "1", default-features = false, features = ["derive"], optional = true } base64 = { version = "0.21", default-features = false, features = ["alloc"] } rmp-serde = { version = "1", optional = true } pyo3 = { version = "0.18", optional = true } js-sys = { version = "0.3.63", optional = true } wasm-bindgen = { version = "0.2.86", optional = true } derive_more = { version = "0.99", optional = true, default_features = false, features = ["as_ref", "from", "into"] } wasm-bindgen-derive = { version = "0.2.0", optional = true } # These packages are among the dependencies of the packages above. # Their versions should be updated when the main packages above are updated. generic-array = { version = "0.14.6", features = ["zeroize"] } rand_core = { version = "0.6", default-features = false } getrandom = { version = "0.2", optional = true, default-features = false } subtle = { version = "2.4", default-features = false } zeroize = { version = "1.5", default-features = false, features = ["derive"] } [dev-dependencies] criterion = { version = "0.5", features = ["html_reports"] } serde_json = "1" rmp-serde = "1" [features] default = ["default-rng"] bench-internals = ["default-rng"] bindings-python = ["pyo3", "std", "derive_more", "default-serialization"] bindings-wasm = ["js-sys", "default-serialization", "wasm-bindgen", "derive_more", "wasm-bindgen-derive", "getrandom/js"] default-rng = ["getrandom", "rand_core/getrandom"] default-serialization = ["serde", "rmp-serde"] serde = ["dep:serde"] std = [] # What features to use when building documentation on docs.rs [package.metadata.docs.rs] features = ["default-rng", "default-serialization"] # Used to conditionally enable the unstable feature `doc-cfg` rustdoc-args = ["--cfg", "docsrs"] [[bench]] name = "bench" path = "bench/bench.rs" harness = false