Cargo.toml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  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/map",
  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", 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. clap = {version = "3.0.7", features = ["derive"], optional = true}
  53. indexmap = {version = "1.7.0", optional = true}
  54. itertools = {version = "0.10.3", optional = true}
  55. # Misc
  56. termion = {version = "1.5.6", optional = true}
  57. simplelog = {version = "0.11.2", optional = true}
  58. # Websockets
  59. tungstenite = {version = "0.16.0", optional = true}
  60. async-tungstenite = {version = "0.16.1", optional = true}
  61. # Crypto
  62. bitvec = {version = "1.0.0", optional = true}
  63. rand = {version = "0.8.4", optional = true}
  64. sha2 = {version = "0.10.1", optional = true}
  65. group = {version = "0.11.0", optional = true}
  66. arrayvec = {version = "0.7.2", optional = true}
  67. blake2b_simd = {version = "1.0.0", optional = true}
  68. pasta_curves = {version = "0.3.0", optional = true}
  69. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  70. incrementalmerkletree = {version = "0.2.0", optional = true}
  71. halo2_proofs = {git = "https://github.com/zcash/halo2", branch = "main", features = ["dev-graph", "gadget-traces", "sanity-checks"], optional = true}
  72. halo2_gadgets = {git = "https://github.com/zcash/halo2", branch = "main", features = ["dev-graph", "test-dependencies"], optional = true}
  73. # Wallet management
  74. sqlx = {version = "0.5.10", features = ["runtime-async-std-native-tls", "sqlite"], optional = true}
  75. libsqlite3-sys = {version = "0.23.1", features = ["bundled-sqlcipher"], optional = true }
  76. # Node utilities
  77. signal-hook = {version = "0.3.13", optional = true}
  78. signal-hook-async-std = {version = "0.2.2", optional = true}
  79. # Node protocol
  80. [dependencies.zeromq]
  81. version = "0.3.3"
  82. default-features = false
  83. features = ["async-std-runtime", "all-transport"]
  84. optional = true
  85. [dependencies.rocksdb]
  86. # TODO: Revert to upstream after bd966750ec861d687913d59a9939a1408ac53131 is merged.
  87. git = "https://github.com/parazyd/rust-rocksdb"
  88. rev = "bd966750ec861d687913d59a9939a1408ac53131"
  89. default-features = false
  90. features = ["zstd"]
  91. optional = true
  92. [features]
  93. async-runtime = [
  94. "async-std",
  95. "async-channel",
  96. "async-executor",
  97. "async-trait",
  98. "futures",
  99. "smol",
  100. ]
  101. async-net = [
  102. "async-native-tls",
  103. "native-tls",
  104. ]
  105. websockets = [
  106. "async-tungstenite",
  107. "tungstenite",
  108. ]
  109. util = [
  110. "hex",
  111. "bincode",
  112. "serde",
  113. "serde_json",
  114. "dirs",
  115. "num-bigint",
  116. ]
  117. rpc = [
  118. "rand",
  119. "url",
  120. "async-net",
  121. "async-runtime",
  122. "websockets",
  123. "util",
  124. ]
  125. blockchain = [
  126. "rocksdb",
  127. "async-runtime",
  128. "util",
  129. ]
  130. tui = [
  131. "async-std",
  132. "termion",
  133. ]
  134. system = [
  135. "rand",
  136. "async-runtime",
  137. ]
  138. cli = [
  139. "simplelog",
  140. "toml",
  141. "clap",
  142. "util",
  143. ]
  144. net = [
  145. "util",
  146. "system",
  147. ]
  148. crypto = [
  149. "bitvec",
  150. "rand",
  151. "pasta_curves",
  152. "blake2b_simd",
  153. "incrementalmerkletree",
  154. "halo2_proofs",
  155. "halo2_gadgets",
  156. "subtle",
  157. "lazy_static",
  158. "group",
  159. "arrayvec",
  160. "crypto_api_chachapoly",
  161. "sha2",
  162. "bs58",
  163. "util",
  164. "zkas",
  165. ]
  166. wallet = [
  167. "sqlx",
  168. "libsqlite3-sys"
  169. ]
  170. node = [
  171. "url",
  172. "bytes",
  173. "zeromq",
  174. "signal-hook",
  175. "signal-hook-async-std",
  176. "async-runtime",
  177. "blockchain",
  178. "crypto",
  179. "wallet",
  180. "util",
  181. "net",
  182. ]
  183. zkas = [
  184. "termion",
  185. "indexmap",
  186. "itertools",
  187. "util",
  188. ]
  189. [[example]]
  190. name = "net"
  191. path = "example/net.rs"
  192. required-features = ["async-runtime", "cli", "net"]
  193. [[example]]
  194. name = "tui"
  195. path = "example/tui_ex.rs"
  196. required-features = ["async-runtime", "tui"]
  197. [[example]]
  198. name = "tx"
  199. path = "example/tx.rs"
  200. required-features = ["node"]
  201. [[example]]
  202. name = "tree"
  203. path = "example/tree.rs"
  204. required-features = ["crypto"]
  205. # ZK VM Proof examples
  206. [[example]]
  207. name = "arithmetic"
  208. path = "proof/arithmetic.rs"
  209. required-features = ["cli", "crypto", "zkas"]
  210. [[example]]
  211. name = "mint"
  212. path = "proof/mint.rs"
  213. required-features = ["cli", "crypto", "zkas"]
  214. [[example]]
  215. name = "burn"
  216. path = "proof/burn.rs"
  217. required-features = ["cli", "crypto", "zkas"]
  218. [[example]]
  219. name = "dao"
  220. path = "proof/dao.rs"
  221. required-features = ["cli", "crypto", "zkas"]