Cargo.toml 6.9 KB

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