Cargo.toml 6.9 KB

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