Cargo.toml 6.4 KB

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