Cargo.toml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. [package]
  2. name = "libthreema-dependencies"
  3. version.workspace = true
  4. edition.workspace = true
  5. license.workspace = true
  6. [lib]
  7. crate-type = ["rlib"]
  8. [dependencies]
  9. aead = {
  10. version = "0.5",
  11. default-features = false,
  12. features = [
  13. "alloc",
  14. "rand_core",
  15. "std",
  16. ]
  17. }
  18. argon2 = { version = "0.5", default-features = false, features = ["alloc"] }
  19. blake2 = {
  20. version = "0.10",
  21. default-features = false,
  22. features = [
  23. "std",
  24. # "zeroize",
  25. ]
  26. }
  27. chacha20 = {
  28. version = "0.9", # 0.10+ held back by chacha20poly1305,
  29. features = [
  30. "zeroize",
  31. ]
  32. }
  33. chacha20poly1305 = {
  34. version = "0.10",
  35. default-features = false,
  36. features = [
  37. "alloc",
  38. ]
  39. }
  40. cipher = "0.4" # 0.5+ held back by chacha20
  41. crypto_secretbox = {
  42. version = "0.1",
  43. default-features = false,
  44. features = [
  45. "alloc",
  46. "salsa20",
  47. ]
  48. }
  49. data-encoding = "2"
  50. digest = "0.10" # 0.11+ held back by blake2, curve25519-dalek, hmac, pbkd2, sha1, sha2
  51. ed25519-dalek = "2"
  52. hmac = {
  53. version = "0.12", # 0.13+ held back by dependencies to digest@0.10
  54. default-features = false,
  55. }
  56. pbkdf2 = "0.12" # 0.13+ held back by dependencies to digest@0.10
  57. poly1305 = { version = "0.8", default-features = false, features = ["zeroize"] }
  58. # Important: The `log` feature should not be enabled for rand@0.8, see RUSTSEC-2026-0097.
  59. rand = "0.8" # 0.9+ held back by aead and its dependency to API incompatible rand_core version
  60. salsa20 = {
  61. version = "0.10", # 0.11+ held back by cipher
  62. default-features = false,
  63. features = [
  64. "std",
  65. "zeroize",
  66. ]
  67. }
  68. scrypt = {
  69. version = "0.11", # 0.12+ held back by other dependencies to cipher, digest, hmac, ...
  70. default-features = false,
  71. }
  72. sha2 = {
  73. version = "0.10", # 0.11+ held back by other dependencies to cipher, digest, sha2
  74. default-features = false,
  75. features = [
  76. "std",
  77. # "zeroize",
  78. ]
  79. }
  80. subtle = { version = "2", features = ["const-generics"] }
  81. x25519-dalek = {
  82. version = "2",
  83. features = [
  84. "reusable_secrets",
  85. "static_secrets",
  86. "zeroize",
  87. ]
  88. }
  89. zeroize = "1"
  90. [features]
  91. seedable-rng = []
  92. [lints]
  93. workspace = true