Cargo.toml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. [package]
  2. name = "darkfi"
  3. version = "0.3.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 = "darkfi"
  12. [workspace]
  13. members = [
  14. "bin/zkas",
  15. "bin/cashierd",
  16. "bin/darkfid",
  17. "bin/drk",
  18. "bin/gatewayd",
  19. "bin/ircd",
  20. "bin/dnetview",
  21. "bin/daod",
  22. "bin/dao-cli",
  23. "bin/taud",
  24. "bin/tau-cli"
  25. ]
  26. [dependencies]
  27. # Hard dependencies
  28. log = "0.4.14"
  29. thiserror = "1.0.30"
  30. # async-runtime
  31. smol = {version = "1.2.5", optional = true}
  32. futures = {version = "0.3.19", optional = true}
  33. async-std = {version = "1.10.0", features = ["attributes"], optional = true}
  34. async-trait = {version = "0.1.52", optional = true}
  35. async-channel = {version = "1.6.1", optional = true}
  36. async-executor = {version = "1.4.1", optional = true}
  37. # async-net
  38. async-native-tls = {version = "0.4.0", optional = true}
  39. native-tls = {version = "0.2.8", optional = true}
  40. # Encoding
  41. hex = {version = "0.4.3", optional = true}
  42. bs58 = {version = "0.4.0", optional = true}
  43. toml = {version = "0.5.8", optional = true}
  44. bytes = {version = "1.1.0", optional = true}
  45. bincode = {version = "1.3.3", optional = true}
  46. num-bigint = {version = "0.4.3", optional = true}
  47. serde_json = {version = "1.0.74", optional = true}
  48. serde = {version = "1.0.133", features = ["derive"], optional = true}
  49. # Utilities
  50. url = {version = "2.2.2", optional = true}
  51. dirs = {version = "4.0.0", optional = true}
  52. subtle = {version = "2.4.1", optional = true}
  53. lazy_static = {version = "1.4.0", optional = true}
  54. indexmap = {version = "1.7.0", optional = true}
  55. itertools = {version = "0.10.3", optional = true}
  56. # Misc
  57. termion = {version = "1.5.6", optional = true}
  58. simplelog = {version = "0.11.2", optional = true}
  59. # Websockets
  60. tungstenite = {version = "0.16.0", optional = true}
  61. async-tungstenite = {version = "0.16.1", optional = true}
  62. # socks5
  63. fast-socks5 = {git = "https://github.com/ghassmo/fast-socks5", optional = true}
  64. # Crypto
  65. bitvec = {version = "1.0.0", optional = true}
  66. rand = {version = "0.8.5", optional = true}
  67. sha2 = {version = "0.10.1", optional = true}
  68. group = {version = "0.11.0", optional = true}
  69. arrayvec = {version = "0.7.2", optional = true}
  70. blake2b_simd = {version = "1.0.0", optional = true}
  71. pasta_curves = {version = "0.3.0", optional = true}
  72. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  73. incrementalmerkletree = {version = "0.2.0", optional = true}
  74. halo2_proofs = {git = "https://github.com/zcash/halo2", branch = "main", features = ["dev-graph", "gadget-traces", "sanity-checks"], optional = true}
  75. halo2_gadgets = {git = "https://github.com/zcash/halo2", branch = "main", features = ["dev-graph", "test-dependencies"], optional = true}
  76. # Wallet management
  77. sqlx = {version = "0.5.10", features = ["runtime-async-std-native-tls", "sqlite"], optional = true}
  78. libsqlite3-sys = {version = "0.23.1", features = ["bundled-sqlcipher"], optional = true }
  79. # Node utilities
  80. signal-hook = {version = "0.3.13", optional = true}
  81. signal-hook-async-std = {version = "0.2.2", optional = true}
  82. # Node protocol
  83. [dependencies.zeromq]
  84. version = "0.3.3"
  85. default-features = false
  86. features = ["async-std-runtime", "all-transport"]
  87. optional = true
  88. [dependencies.rocksdb]
  89. # TODO: Revert to upstream after bd966750ec861d687913d59a9939a1408ac53131 is merged.
  90. git = "https://github.com/parazyd/rust-rocksdb"
  91. rev = "bd966750ec861d687913d59a9939a1408ac53131"
  92. default-features = false
  93. features = ["zstd"]
  94. optional = true
  95. [dev-dependencies]
  96. clap = {version = "3.0.7", features = ["derive"]}
  97. [features]
  98. async-runtime = [
  99. "async-std",
  100. "async-channel",
  101. "async-executor",
  102. "async-trait",
  103. "futures",
  104. "smol",
  105. ]
  106. async-net = [
  107. "async-native-tls",
  108. "native-tls",
  109. ]
  110. websockets = [
  111. "async-tungstenite",
  112. "tungstenite",
  113. ]
  114. util = [
  115. "hex",
  116. "bincode",
  117. "serde",
  118. "toml",
  119. "url",
  120. "simplelog",
  121. "serde_json",
  122. "dirs",
  123. "num-bigint",
  124. ]
  125. rpc = [
  126. "rand",
  127. "url",
  128. "fast-socks5",
  129. "async-net",
  130. "async-runtime",
  131. "websockets",
  132. "util",
  133. ]
  134. blockchain = [
  135. "rocksdb",
  136. "async-runtime",
  137. "util",
  138. ]
  139. system = [
  140. "rand",
  141. "async-runtime",
  142. ]
  143. net = [
  144. "util",
  145. "system",
  146. ]
  147. crypto = [
  148. "bitvec",
  149. "rand",
  150. "pasta_curves",
  151. "blake2b_simd",
  152. "incrementalmerkletree",
  153. "halo2_proofs",
  154. "halo2_gadgets",
  155. "subtle",
  156. "lazy_static",
  157. "group",
  158. "arrayvec",
  159. "crypto_api_chachapoly",
  160. "sha2",
  161. "bs58",
  162. "util",
  163. "zkas",
  164. ]
  165. wallet = [
  166. "sqlx",
  167. "libsqlite3-sys"
  168. ]
  169. node = [
  170. "url",
  171. "bytes",
  172. "zeromq",
  173. "signal-hook",
  174. "signal-hook-async-std",
  175. "async-runtime",
  176. "blockchain",
  177. "crypto",
  178. "wallet",
  179. "util",
  180. "net",
  181. ]
  182. zkas = [
  183. "termion",
  184. "indexmap",
  185. "itertools",
  186. "util",
  187. ]
  188. [[example]]
  189. name = "net"
  190. path = "example/net.rs"
  191. required-features = ["async-runtime", "net"]
  192. [[example]]
  193. name = "tx"
  194. path = "example/tx.rs"
  195. required-features = ["node"]
  196. [[example]]
  197. name = "dao-process"
  198. path = "example/dao_process.rs"
  199. required-features = ["crypto", "zkas"]
  200. # ZK VM Proof examples
  201. [[example]]
  202. name = "arithmetic"
  203. path = "proof/arithmetic.rs"
  204. required-features = ["crypto", "zkas"]
  205. [[example]]
  206. name = "mint"
  207. path = "proof/mint.rs"
  208. required-features = ["crypto", "zkas"]
  209. [[example]]
  210. name = "burn"
  211. path = "proof/burn.rs"
  212. required-features = ["crypto", "zkas"]