Cargo.toml 5.3 KB

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