Cargo.toml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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.16"
  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.11.0", features = ["attributes"], optional = true}
  36. async-trait = {version = "0.1.53", 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.12.0-alpha1", optional = true}
  62. # Websockets
  63. tungstenite = {version = "0.17.2", optional = true}
  64. async-tungstenite = {version = "0.17.2", 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. blake3 = {version = "1.3.1", optional = true}
  71. sha2 = {version = "0.10.2", optional = true}
  72. group = {version = "0.11.0", optional = true}
  73. arrayvec = {version = "0.7.2", optional = true}
  74. blake2b_simd = {version = "1.0.0", optional = true}
  75. pasta_curves = {version = "0.3.0", optional = true}
  76. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  77. incrementalmerkletree = {version = "0.2.0", optional = true}
  78. halo2_proofs = {version = "0.1.0-beta.3", features = ["dev-graph", "gadget-traces", "sanity-checks"], optional = true}
  79. halo2_gadgets = {version = "0.1.0-beta.2", features = ["dev-graph", "test-dependencies"], optional = true}
  80. # Smart contract runtime
  81. drk-sdk = {path = "src/sdk", optional = true}
  82. wasmer = {version = "2.2.1", optional = true}
  83. wasmer-compiler-singlepass = {version = "2.2.1", optional = true}
  84. wasmer-middlewares = {version = "2.2.1", optional = true}
  85. # Wallet management
  86. sqlx = {version = "0.5.11", features = ["runtime-async-std-native-tls", "sqlite"], optional = true}
  87. libsqlite3-sys = {version = "0.23.2", features = ["bundled-sqlcipher"], optional = true }
  88. # Blockchain store
  89. sled = {version = "0.34.7", optional = true}
  90. # Node utilities
  91. signal-hook = {version = "0.3.13", optional = true}
  92. signal-hook-async-std = {version = "0.2.2", optional = true}
  93. # Node protocol
  94. [dependencies.zeromq]
  95. version = "0.3.3"
  96. default-features = false
  97. features = ["async-std-runtime", "all-transport"]
  98. optional = true
  99. [dependencies.rocksdb]
  100. # TODO: Revert to upstream after bd966750ec861d687913d59a9939a1408ac53131 is merged.
  101. git = "https://github.com/parazyd/rust-rocksdb"
  102. rev = "bd966750ec861d687913d59a9939a1408ac53131"
  103. default-features = false
  104. features = ["zstd"]
  105. optional = true
  106. [dev-dependencies]
  107. clap = {version = "3.1.6", features = ["derive"]}
  108. [features]
  109. async-runtime = [
  110. "async-std",
  111. "async-channel",
  112. "async-executor",
  113. "async-trait",
  114. "futures",
  115. "smol",
  116. ]
  117. async-net = [
  118. "async-native-tls",
  119. "native-tls",
  120. ]
  121. websockets = [
  122. "async-tungstenite",
  123. "tungstenite",
  124. ]
  125. util = [
  126. "hex",
  127. "bincode",
  128. "serde",
  129. "toml",
  130. "url",
  131. "simplelog",
  132. "serde_json",
  133. "dirs",
  134. "num-bigint",
  135. "fxhash",
  136. ]
  137. rpc = [
  138. "rand",
  139. "url",
  140. "fast-socks5",
  141. "async-net",
  142. "async-runtime",
  143. "websockets",
  144. "util",
  145. ]
  146. blockchain = [
  147. "rocksdb",
  148. "sled",
  149. "async-runtime",
  150. "util",
  151. ]
  152. system = [
  153. "fxhash",
  154. "rand",
  155. "async-runtime",
  156. ]
  157. net = [
  158. "fxhash",
  159. "util",
  160. "system",
  161. ]
  162. crypto = [
  163. "bitvec",
  164. "blake3",
  165. "rand",
  166. "pasta_curves",
  167. "blake2b_simd",
  168. "incrementalmerkletree",
  169. "halo2_proofs",
  170. "halo2_gadgets",
  171. "subtle",
  172. "lazy_static",
  173. "group",
  174. "arrayvec",
  175. "crypto_api_chachapoly",
  176. "sha2",
  177. "bs58",
  178. "util",
  179. "zkas",
  180. ]
  181. wallet = [
  182. "sqlx",
  183. "libsqlite3-sys",
  184. ]
  185. wasm-runtime = [
  186. "drk-sdk",
  187. "wasmer",
  188. "wasmer-compiler-singlepass",
  189. "wasmer-middlewares",
  190. ]
  191. node = [
  192. "url",
  193. "bytes",
  194. "zeromq",
  195. "signal-hook",
  196. "signal-hook-async-std",
  197. "async-runtime",
  198. "blockchain",
  199. "crypto",
  200. "wallet",
  201. "util",
  202. "net",
  203. ]
  204. zkas = [
  205. "termion",
  206. "indexmap",
  207. "itertools",
  208. "util",
  209. ]
  210. [[example]]
  211. name = "net"
  212. path = "example/net.rs"
  213. required-features = ["async-runtime", "net"]
  214. [[example]]
  215. name = "tx"
  216. path = "example/tx.rs"
  217. required-features = ["node"]
  218. [[example]]
  219. name = "dao-process"
  220. path = "example/dao_process.rs"
  221. required-features = ["crypto", "zkas"]