# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "pg-core" version = "0.3.0" authors = [ "Leon Botros ", ] description = "PostGuard core library communication and bytestream operations." homepage = "https://github.com/encryption4all/postguard/tree/main/pg-core" readme = "README.md" keywords = [ "ibe", "encryption", "ecc", ] categories = ["cryptography"] license = "MIT" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] targets = [ "x86_64-unknown-linux-gnu", "wasm32-unknown-unknown", ] [[bench]] name = "main" harness = false required-features = [ "test", "rust", "stream", ] [dependencies.aead] version = "0.5" features = ["alloc"] optional = true [dependencies.aes-gcm] version = "0.10" optional = true [dependencies.base64ct] version = "1.5" [dependencies.bincode] version = "1.3.3" [dependencies.futures] version = "0.3.27" optional = true [dependencies.ibe] version = "0.3.0" features = [ "cgwkv", "mkem", ] [dependencies.ibs] version = "0.4.0" [dependencies.irma] version = "0.2.1" [dependencies.js-sys] version = "0.3" optional = true [dependencies.rand] version = "0.8" default-features = false [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_json] version = "1.0" [dependencies.subtle] version = "2.3" [dependencies.tiny-keccak] version = "2.0" features = ["sha3"] [dependencies.wasm-bindgen] version = "0.2" optional = true [dependencies.wasm-bindgen-futures] version = "0.4" optional = true [dependencies.web-sys] version = "0.3" features = [ "SubtleCrypto", "AesGcmParams", "Crypto", "CryptoKey", ] optional = true [dev-dependencies.criterion] version = "0.5.1" [dev-dependencies.futures] version = "0.3" features = ["io-compat"] [dev-dependencies.futures-util] version = "0.3.25" [dev-dependencies.rand] version = "0.8.5" [dev-dependencies.serde-transcode] version = "1.1.1" [dev-dependencies.tokio] version = "1.24.3" features = ["full"] [dev-dependencies.tokio-util] version = "0.7.4" features = ["compat"] [features] default = ["rust"] rust = [ "aead", "aes-gcm", ] stream = [ "futures", "aead/stream", ] test = [] web = [ "futures", "wasm-bindgen", "js-sys", "wasm-bindgen-futures", "web-sys/SubtleCrypto", "web-sys/AesGcmParams", "web-sys/Crypto", "web-sys/CryptoKey", ]