Cargo.toml 5.4 KB

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