Cargo.toml 5.5 KB

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