[package] name = "kms-aead" version = "0.19.2" authors = ["Abdulla Abdurakhmanov "] edition = "2021" license = "Apache-2.0" description = "KMS/AEAD envelope encryption for GCP/AWS KMS and Ring AEAD encryption" homepage = "https://github.com/abdolence/kms-aead-rs" repository = "https://github.com/abdolence/kms-aead-rs" documentation = "https://docs.rs/kms-aead" categories = ["cryptography","api-bindings"] keywords = ["kms", "google", "aws", "envelope"] readme = "README.md" include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE", "SECURITY.md"] [badges] maintenance = { status = "actively-developed" } [lib] name = "kms_aead" path = "src/lib.rs" bench = false [dependencies] tracing = "0.1" secret-vault-value = { version = "0.3" } rvstruct = "0.3" rsb_derive = "0.5" async-trait = "0.1" chrono = { version = "0.4.38" } tokio = { version = "1", features = ["full"] } hex = "0.4" ring = { version = "0.17", features = ["default", "std"], optional = true } serde = { version = "1", features = ["derive"], optional = true } gcloud-sdk = { version = "0.25", optional = true, default-features = false } aws-config = { version = "1", optional = true, features = ["behavior-version-latest"] } aws-sdk-kms = { version = "1", optional = true } [dev-dependencies] serde_json = { version = "1" } proptest = "1.4" tracing-subscriber = { version = "0.3", features = ["env-filter"] } criterion = { version = "0.5", features = ["async", "async_futures", "cargo_bench_support", "html_reports", "futures", "tokio", "async_tokio"] } cargo-husky = { version = "1.5", default-features = false, features = ["run-for-all", "prepush-hook", "run-cargo-fmt"] } [features] default = [] serde = ["dep:serde", "chrono/serde", "secret-vault-value/serde"] ring-aead-encryption = ["dep:ring"] gcp = ["gcloud-sdk"] gcp-kms-encryption = ["gcp", "gcloud-sdk/google-cloud-kms-v1", "ring-aead-encryption", "gcloud-sdk/google-longrunning", "gcloud-sdk/tls-roots"] gcp-kms-encryption-webpki = ["gcp", "gcloud-sdk/google-cloud-kms-v1", "ring-aead-encryption", "gcloud-sdk/google-longrunning", "gcloud-sdk/tls-webpki-roots"] aws = ["dep:aws-config"] aws-kms-encryption = ["aws", "dep:aws-sdk-kms", "ring-aead-encryption"] [package.metadata.docs.rs] all-features = false features = ["ring-aead-encryption", "gcp-kms-encryption", "aws-kms-encryption", "serde"] [[example]] name = "aws_kms" path = "examples/aws_kms.rs" required-features = ["aws-kms-encryption"] [[example]] name = "gcp_kms" path = "examples/gcp_kms.rs" required-features = ["gcp-kms-encryption"] [[example]] name = "only_aead" path = "examples/only_aead.rs" required-features = ["ring-aead-encryption"]