Cargo.toml 6.4 KB

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