Cargo.toml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. [package]
  2. name = "darkfi"
  3. version = "0.2.0"
  4. homepage = "https://dark.fi"
  5. description = "Anonymous. Uncensored. Sovereign."
  6. authors = ["darkfi <dev@dark.fi>"]
  7. repository = "https://github.com/darkrenaissance/darkfi"
  8. license = "AGPL-3.0-only"
  9. edition = "2021"
  10. [lib]
  11. name = "drk"
  12. [dependencies.halo2]
  13. version = "=0.1.0-beta.1"
  14. features = ["dev-graph", "gadget-traces", "sanity-checks"]
  15. [dependencies.halo2_gadgets]
  16. git = "https://github.com/parazyd/halo2_gadgets.git"
  17. rev = "8238cb3471b798c76dd53b278524fc80685c7d4f"
  18. features = ["dev-graph", "test-dependencies"]
  19. [dependencies.incrementalmerkletree]
  20. git = "https://github.com/zcash/incrementalmerkletree.git"
  21. rev = "b7bd6246122a6e9ace8edb51553fbf5228906cbb"
  22. [dependencies.rocksdb]
  23. # TODO: Revert to upstream after bd966750ec861d687913d59a9939a1408ac53131 is merged.
  24. git = "https://github.com/parazyd/rust-rocksdb"
  25. rev = "bd966750ec861d687913d59a9939a1408ac53131"
  26. default-features = false
  27. features = ["lz4"]
  28. [dependencies]
  29. # Crypto
  30. ff = "0.11.0"
  31. pasta_curves = "0.2.1"
  32. rand = "0.8.4"
  33. num-bigint = {version = "0.4.2", features = ["rand"]}
  34. blake2b_simd = "0.5.11"
  35. blake2s_simd = "0.5.11"
  36. group = "0.11.0"
  37. crypto_api_chachapoly = "0.5.0"
  38. arrayvec = "0.7.0"
  39. sha2 = "0.9.8"
  40. ripemd160 = "0.9.1"
  41. # Encoding and parsing
  42. bs58 = "0.4.0"
  43. bytes = "1.1.0"
  44. hex = "0.4.3"
  45. toml = "0.5.8"
  46. url = "2.2.2"
  47. serde_json = "1.0.68"
  48. serde = {version = "1.0.130", features = ["derive"]}
  49. # Async
  50. async-std = "1.10.0"
  51. async-trait = "0.1.51"
  52. async-channel = "1.6.1"
  53. native-tls = "0.2.8"
  54. async-native-tls = "0.3.3"
  55. async-executor = "1.4.1"
  56. futures = "0.3.17"
  57. smol = "1.2.5"
  58. # Utilities
  59. anyhow = "1.0.44"
  60. dirs = "4.0.0"
  61. lazy_static = "1.4.0"
  62. log = "0.4.14"
  63. num_cpus = "1.13.0"
  64. simple_logger = "1.13.0"
  65. signal-hook = "0.3.10"
  66. signal-hook-async-std = "0.2.1"
  67. # Used for Websockets client implementation.
  68. async-tungstenite = "0.15.0"
  69. tungstenite = "0.15.0"
  70. # Used for wallet management.
  71. rusqlite = {version = "0.26.1", features = ["bundled-sqlcipher"]}
  72. # Used for gatewayd network transport.
  73. zeromq = {version = "0.3.0", default-features = false, features = ["async-std-runtime", "all-transport"]}
  74. # Cashier Bitcoin dependencies
  75. bdk = {version = "0.12.0", optional = true}
  76. bitcoin = {version = "0.27.0", optional = true}
  77. secp256k1 = {version = "0.20.3", default-features = false, features = ["rand-std"], optional = true}
  78. # Cashier Ethereum dependencies
  79. hash-db = {version = "0.15.2", optional = true}
  80. keccak-hasher = {version = "0.15.3", optional = true}
  81. # Cashier Solana dependencies
  82. solana-client = {version = "1.8.2", optional = true}
  83. solana-sdk = {version = "1.8.2", optional = true}
  84. spl-associated-token-account = {version = "1.0.3", features = ["no-entrypoint"], optional = true}
  85. spl-token = {version = "3.2.0", features = ["no-entrypoint"], optional = true}
  86. [features]
  87. btc = ["bdk", "bitcoin", "secp256k1"]
  88. eth = ["keccak-hasher", "hash-db"]
  89. sol = ["solana-sdk", "solana-client", "spl-token", "spl-associated-token-account"]