content: [package]
  authors = [
      "Damir Jelić <poljar@termina.org.uk>",
      "Denis Kasak <dkasak@termina.org.uk>",
  ]
  name = "vodozemac"
  description = "A Rust implementation of Olm and Megolm"
  repository = "https://github.com/matrix-org/vodozemac"
  version = "0.9.0"
  edition = "2024"
  keywords = ["matrix", "chat", "messaging", "olm", "cryptography"]
  license = "Apache-2.0"
  rust-version = "1.85"
  
  [package.metadata.docs.rs]
  all-features = true
  rustdoc-args = ["--cfg", "docsrs"]
  
  [lints.rust]
  unexpected_cfgs = { level = "deny", check-cfg = ['cfg(fuzzing)'] }
  unsafe_code = "deny"
  missing_docs = "deny"
  dead_code = "deny"
  trivial_casts = "deny"
  trivial_numeric_casts = "deny"
  unsafe_op_in_unsafe_fn = "deny"
  unused_extern_crates = "deny"
  unused_import_braces = "deny"
  unused_qualifications = "deny"
  rust_2018_idioms = "deny"
  
  [lints.clippy]
  panic = "deny"
  unreachable = "deny"
  expect_used = "deny"
  unwrap_used = "deny"
  mem_forget = "deny"
  
  [features]
  default = ["libolm-compat"]
  js = ["getrandom/js"]
  strict-signatures = []
  libolm-compat = []
  insecure-pk-encryption = ["libolm-compat"]
  # The low-level-api feature exposes extra APIs that are only useful in advanced
  # use cases and require extra care to use.
  low-level-api = []
  
  [dependencies]
  aes = "0.8.4"
  arrayvec = { version = "0.7.6", features = ["serde"] }
  base64 = "0.22.1"
  base64ct = { version = "1.8.0", features = ["std", "alloc"] }
  cbc = { version = "0.1.2", features = ["std"] }
  chacha20poly1305 = { version = "0.10.1", features = ["std"] }
  curve25519-dalek = { version = "4.1.3", default-features = false, features = ["zeroize"] }
  ed25519-dalek = { version = "2.1.1", default-features = false, features = ["rand_core", "std", "serde", "hazmat", "zeroize"] }
  getrandom = "0.2.15"
  hkdf = "0.12.4"
  hmac = "0.12.1"
  matrix-pickle = { version = "0.2.1" }
  prost = "0.14.1"
  rand = "0.8.5"
  serde = { version = "1.0.219", features = ["derive"] }
  serde_bytes = "0.11.17"
  serde_json = "1.0.140"
  sha2 = "0.10.9"
  subtle = "2.6.1"
  thiserror = "2.0.12"
  x25519-dalek = { version = "2.0.1", features = ["serde", "reusable_secrets", "static_secrets", "zeroize"] }
  zeroize = "1.8.1"
  
  [dev-dependencies]
  anyhow = "1.0.98"
  assert_matches2 = "0.1.2"
  criterion = { version = "3.0.4", package = "codspeed-criterion-compat" }
  ntest = "0.9.3"
  olm-rs = "2.2.0"
  proptest = "1.7.0"
  insta = "1.43.1"
  
  [patch.crates-io]
  olm-rs = { git = "https://github.com/poljar/olm-rs", rev = "9f7108c3b852c39bf1d0f09ccaafb9a1cf7bb83e" }
  
  [[bench]]
  name = "olm_benchmark"
  harness = false
  
  [[bench]]
  name = "megolm_benchmark"
  harness = false
  