Cargo.toml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  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/darkfid2",
  18. "bin/drk",
  19. "bin/gatewayd",
  20. "bin/ircd",
  21. "bin/dnetview",
  22. "bin/daod",
  23. "bin/dao-cli",
  24. "bin/tau/taud",
  25. "bin/tau/tau-cli",
  26. "bin/vanityaddr",
  27. "src/sdk",
  28. "src/util/derive",
  29. "src/util/derive-internal",
  30. ]
  31. [dependencies]
  32. # Hard dependencies
  33. libc = "0.2.121"
  34. log = "0.4.16"
  35. thiserror = "1.0.30"
  36. # async-runtime
  37. smol = {version = "1.2.5", optional = true}
  38. futures = {version = "0.3.21", optional = true}
  39. async-std = {version = "1.11.0", features = ["attributes"], optional = true}
  40. async-trait = {version = "0.1.53", optional = true}
  41. async-channel = {version = "1.6.1", optional = true}
  42. async-executor = {version = "1.4.1", optional = true}
  43. # async-net
  44. async-native-tls = {version = "0.4.0", optional = true}
  45. native-tls = {version = "0.2.8", optional = true}
  46. # Networking
  47. socket2 = {version = "0.4.4", optional = true}
  48. futures-rustls = {version = "0.22.1", features = ["dangerous_configuration"], optional = true}
  49. # TLS cert utilities
  50. ed25519-compact = {version = "1.0.11", features = ["pem"], optional = true}
  51. rcgen = {version = "0.9.2", features = ["pem"], optional = true}
  52. rustls-pemfile = {version = "0.3.0", optional = true}
  53. # Encoding
  54. hex = {version = "0.4.3", optional = true}
  55. bs58 = {version = "0.4.0", optional = true}
  56. toml = {version = "0.5.8", optional = true}
  57. bytes = {version = "1.1.0", optional = true}
  58. bincode = {version = "1.3.3", optional = true}
  59. num-bigint = {version = "0.4.3", optional = true}
  60. serde_json = {version = "1.0.79", optional = true}
  61. serde = {version = "1.0.136", features = ["derive"], optional = true}
  62. # Utilities
  63. url = {version = "2.2.2", optional = true}
  64. dirs = {version = "4.0.0", optional = true}
  65. subtle = {version = "2.4.1", optional = true}
  66. lazy_static = {version = "1.4.0", optional = true}
  67. fxhash = {version = "0.2.1", optional = true}
  68. indexmap = {version = "1.8.0", optional = true}
  69. itertools = {version = "0.10.3", optional = true}
  70. darkfi-derive = {path = "src/util/derive", optional = true}
  71. darkfi-derive-internal = {path = "src/util/derive-internal", optional = true}
  72. chrono = {version = "0.4.19", optional = true}
  73. regex = {version = "1.1.9", optional = true}
  74. # Misc
  75. termion = {version = "1.5.6", optional = true}
  76. simplelog = {version = "0.12.0-alpha1", optional = true}
  77. # Websockets
  78. tungstenite = {version = "0.17.2", optional = true}
  79. async-tungstenite = {version = "0.17.2", optional = true}
  80. # socks5
  81. fast-socks5 = {git = "https://github.com/ghassmo/fast-socks5", optional = true}
  82. # Crypto
  83. bitvec = {version = "1.0.0", optional = true}
  84. rand = {version = "0.8.5", optional = true}
  85. blake3 = {version = "1.3.1", optional = true}
  86. sha2 = {version = "0.10.2", optional = true}
  87. group = {version = "0.11.0", optional = true}
  88. arrayvec = {version = "0.7.2", optional = true}
  89. blake2b_simd = {version = "1.0.0", optional = true}
  90. pasta_curves = {version = "0.3.0", optional = true}
  91. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  92. incrementalmerkletree = {version = "0.2.0", optional = true}
  93. halo2_proofs = {version = "0.1.0-beta.4", features = ["dev-graph", "gadget-traces", "sanity-checks"], optional = true}
  94. halo2_gadgets = {version = "0.1.0-beta.3", features = ["dev-graph", "test-dependencies"], optional = true}
  95. # Smart contract runtime
  96. drk-sdk = {path = "src/sdk", optional = true}
  97. wasmer = {version = "2.2.1", optional = true}
  98. wasmer-compiler-singlepass = {version = "2.2.1", optional = true}
  99. wasmer-middlewares = {version = "2.2.1", optional = true}
  100. # Wallet management
  101. sqlx = {version = "0.5.11", features = ["runtime-async-std-native-tls", "sqlite"], optional = true}
  102. libsqlite3-sys = {version = "0.23.2", features = ["bundled-sqlcipher"], optional = true }
  103. # Blockchain store
  104. sled = {version = "0.34.7", optional = true}
  105. # Node utilities
  106. signal-hook = {version = "0.3.13", optional = true}
  107. signal-hook-async-std = {version = "0.2.2", optional = true}
  108. # Node protocol
  109. [dependencies.zeromq]
  110. version = "0.3.3"
  111. default-features = false
  112. features = ["async-std-runtime", "all-transport"]
  113. optional = true
  114. [dependencies.rocksdb]
  115. # TODO: Revert to upstream after bd966750ec861d687913d59a9939a1408ac53131 is merged.
  116. git = "https://github.com/parazyd/rust-rocksdb"
  117. rev = "bd966750ec861d687913d59a9939a1408ac53131"
  118. default-features = false
  119. features = ["zstd"]
  120. optional = true
  121. [dev-dependencies]
  122. clap = {version = "3.1.6", features = ["derive"]}
  123. [features]
  124. async-runtime = [
  125. "async-std",
  126. "async-channel",
  127. "async-executor",
  128. "async-trait",
  129. "futures",
  130. "smol",
  131. ]
  132. async-net = [
  133. "async-native-tls",
  134. "native-tls",
  135. ]
  136. websockets = [
  137. "async-tungstenite",
  138. "tungstenite",
  139. ]
  140. util = [
  141. "hex",
  142. "bincode",
  143. "serde",
  144. "toml",
  145. "url",
  146. "simplelog",
  147. "serde_json",
  148. "dirs",
  149. "num-bigint",
  150. "fxhash",
  151. "darkfi-derive",
  152. "darkfi-derive-internal",
  153. ]
  154. rpc = [
  155. "rand",
  156. "url",
  157. "fast-socks5",
  158. "async-net",
  159. "async-runtime",
  160. "websockets",
  161. "util",
  162. "net",
  163. ]
  164. blockchain = [
  165. "rocksdb",
  166. "sled",
  167. "chrono",
  168. "rand",
  169. "async-runtime",
  170. "util",
  171. "crypto",
  172. "net",
  173. "blockchain2",
  174. ]
  175. blockchain2 = [
  176. "blake3",
  177. "sled",
  178. "util",
  179. ]
  180. system = [
  181. "fxhash",
  182. "rand",
  183. "async-runtime",
  184. ]
  185. net = [
  186. "fxhash",
  187. "socket2",
  188. "futures-rustls",
  189. "fast-socks5",
  190. "ed25519-compact",
  191. "rcgen",
  192. "regex",
  193. "rustls-pemfile",
  194. "util",
  195. "system",
  196. ]
  197. net2 = [
  198. "fxhash",
  199. "socket2",
  200. "futures-rustls",
  201. "fast-socks5",
  202. "ed25519-compact",
  203. "rcgen",
  204. "regex",
  205. "rustls-pemfile",
  206. "util",
  207. "system",
  208. ]
  209. crypto = [
  210. "bitvec",
  211. "blake3",
  212. "rand",
  213. "pasta_curves",
  214. "blake2b_simd",
  215. "incrementalmerkletree",
  216. "halo2_proofs",
  217. "halo2_gadgets",
  218. "subtle",
  219. "lazy_static",
  220. "group",
  221. "arrayvec",
  222. "crypto_api_chachapoly",
  223. "sha2",
  224. "bs58",
  225. "util",
  226. "zkas",
  227. ]
  228. wallet = [
  229. "sqlx",
  230. "libsqlite3-sys",
  231. ]
  232. wasm-runtime = [
  233. "drk-sdk",
  234. "wasmer",
  235. "wasmer-compiler-singlepass",
  236. "wasmer-middlewares",
  237. ]
  238. node = [
  239. "url",
  240. "bytes",
  241. "zeromq",
  242. "signal-hook",
  243. "signal-hook-async-std",
  244. "async-runtime",
  245. "blockchain",
  246. "crypto",
  247. "wallet",
  248. "util",
  249. "net",
  250. ]
  251. zkas = [
  252. "termion",
  253. "indexmap",
  254. "itertools",
  255. "util",
  256. ]
  257. raft = [
  258. "blake3",
  259. "sled",
  260. "util",
  261. "net",
  262. "rpc",
  263. ]
  264. [[example]]
  265. name = "net"
  266. path = "example/net.rs"
  267. required-features = ["async-runtime", "net"]
  268. [[example]]
  269. name = "tx"
  270. path = "example/tx.rs"
  271. required-features = ["node"]