Cargo.toml 6.9 KB

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