Cargo.toml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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/darkotc",
  22. "bin/drk",
  23. "bin/faucetd",
  24. "bin/ircd",
  25. #"bin/irc-raft",
  26. "bin/dnetview",
  27. "bin/daod",
  28. "bin/dao-cli",
  29. "bin/tau/taud",
  30. "bin/tau/tau-cli",
  31. "bin/darkwiki/darkwikid",
  32. "bin/darkwiki/darkwiki-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.132"
  43. log = "0.4.17"
  44. thiserror = "1.0.34"
  45. # async-runtime
  46. smol = {version = "1.2.5", optional = true}
  47. futures = {version = "0.3.24", 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.7.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.7", optional = true}
  57. futures-rustls = {version = "0.22.2", 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.85", optional = true}
  69. serde = {version = "1.0.144", 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.22", optional = true}
  84. # Misc
  85. termion = {version = "1.5.6", optional = true}
  86. simplelog = {version = "0.12.0", optional = true}
  87. indicatif = {version = "0.17.0", optional = true}
  88. # Websockets
  89. tungstenite = {version = "0.17.3", optional = true}
  90. async-tungstenite = {version = "0.17.2", optional = true}
  91. # socks5
  92. fast-socks5 = {version = "0.4.3", optional = true}
  93. # Crypto
  94. bitvec = {version = "1.0.1", optional = true}
  95. rand = {version = "0.8.5", optional = true}
  96. blake3 = {version = "1.3.1", optional = true}
  97. sha2 = {version = "0.10.5", optional = true}
  98. group = {version = "0.12.0", optional = true}
  99. arrayvec = {version = "0.7.2", optional = true}
  100. blake2b_simd = {version = "1.0.0", optional = true}
  101. pasta_curves = {version = "0.4.0", optional = true}
  102. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  103. incrementalmerkletree = {version = "0.3.0", optional = true}
  104. halo2_proofs = {version = "0.2.0", optional = true}
  105. halo2_gadgets = {version = "0.2.0", optional = true}
  106. #halo2_proofs = {git = "https://github.com/zcash/halo2.git", rev = "a898d65ae3ad3d41987666f6a03cfc15edae01c4", optional = true}
  107. #halo2_gadgets = {git = "https://github.com/zcash/halo2.git", rev = "a898d65ae3ad3d41987666f6a03cfc15edae01c4", optional = true}
  108. # Smart contract runtime
  109. drk-sdk = {path = "src/sdk", optional = true}
  110. wasmer = {version = "2.3.0", optional = true}
  111. wasmer-compiler-singlepass = {version = "2.3.0", optional = true}
  112. wasmer-middlewares = {version = "2.3.0", optional = true}
  113. # Wallet management
  114. sqlx = {version = "0.6.1", features = ["runtime-async-std-native-tls", "sqlite"], optional = true}
  115. libsqlite3-sys = {version = "0.24.1", features = ["bundled-sqlcipher"], optional = true }
  116. # Blockchain store
  117. sled = {version = "0.34.7", optional = true}
  118. [dev-dependencies]
  119. clap = {version = "3.2.20", features = ["derive"]}
  120. halo2_proofs = {version = "0.2.0", features = ["dev-graph", "gadget-traces", "sanity-checks"]}
  121. halo2_gadgets = {version = "0.2.0", features = ["dev-graph", "test-dependencies"]}
  122. #halo2_proofs = {git = "https://github.com/zcash/halo2.git", rev = "a898d65ae3ad3d41987666f6a03cfc15edae01c4", features = ["dev-graph", "gadget-traces", "sanity-checks"]}
  123. #halo2_gadgets = {git = "https://github.com/zcash/halo2.git", rev = "a898d65ae3ad3d41987666f6a03cfc15edae01c4", features = ["dev-graph", "test-dependencies"]}
  124. plotters = "0.3.3"
  125. [features]
  126. async-runtime = [
  127. "async-std",
  128. "async-channel",
  129. "async-executor",
  130. "async-trait",
  131. "futures",
  132. "smol",
  133. ]
  134. async-net = [
  135. "async-native-tls",
  136. "native-tls",
  137. ]
  138. websockets = [
  139. "async-tungstenite",
  140. "tungstenite",
  141. ]
  142. util = [
  143. "blake3",
  144. "bs58",
  145. "hex",
  146. "bincode",
  147. "serde",
  148. "toml",
  149. "url",
  150. "simplelog",
  151. "serde_json",
  152. "dirs",
  153. "fxhash",
  154. "chrono",
  155. "indicatif",
  156. "termion",
  157. "async-net",
  158. "async-runtime",
  159. "darkfi-derive",
  160. "darkfi-derive-internal",
  161. "rpc",
  162. ]
  163. rpc = [
  164. "rand",
  165. "url",
  166. "fast-socks5",
  167. "async-net",
  168. "async-runtime",
  169. "websockets",
  170. "net",
  171. ]
  172. blockchain = [
  173. "blake3",
  174. "chrono",
  175. "indexmap",
  176. "sled",
  177. "crypto",
  178. "tx",
  179. "net",
  180. "node",
  181. "util",
  182. ]
  183. system = [
  184. "fxhash",
  185. "rand",
  186. "async-runtime",
  187. ]
  188. net = [
  189. "fxhash",
  190. "socket2",
  191. "futures-rustls",
  192. "fast-socks5",
  193. "ed25519-compact",
  194. "rcgen",
  195. "rustls-pemfile",
  196. "structopt",
  197. "structopt-toml",
  198. "util",
  199. "system",
  200. ]
  201. crypto = [
  202. "bitvec",
  203. "blake3",
  204. "rand",
  205. "pasta_curves",
  206. "blake2b_simd",
  207. "incrementalmerkletree",
  208. "halo2_proofs",
  209. "halo2_gadgets",
  210. "subtle",
  211. "lazy_static",
  212. "group",
  213. "arrayvec",
  214. "crypto_api_chachapoly",
  215. "sha2",
  216. "bs58",
  217. "util",
  218. "zkas",
  219. ]
  220. wallet = [
  221. "sqlx",
  222. "libsqlite3-sys",
  223. "async-std",
  224. "crypto",
  225. "util",
  226. ]
  227. wasm-runtime = [
  228. "drk-sdk",
  229. "wasmer",
  230. "wasmer-compiler-singlepass",
  231. "wasmer-middlewares",
  232. ]
  233. node = [
  234. "url",
  235. "bytes",
  236. "lazy-init",
  237. "async-runtime",
  238. "blockchain",
  239. "crypto",
  240. "wallet",
  241. "util",
  242. "net",
  243. ]
  244. zkas = [
  245. "termion",
  246. "indexmap",
  247. "itertools",
  248. "util",
  249. ]
  250. raft = [
  251. "blake3",
  252. "sled",
  253. "util",
  254. "net",
  255. "rpc",
  256. ]
  257. tx = [
  258. "crypto",
  259. "util",
  260. ]
  261. dht = [
  262. "util",
  263. ]
  264. [[example]]
  265. name = "net"
  266. path = "example/net.rs"
  267. required-features = ["async-runtime", "net"]
  268. [[example]]
  269. name = "tx"
  270. path = "example/tx.rs"
  271. required-features = ["node"]
  272. [[example]]
  273. name = "zk"
  274. path = "example/zk.rs"
  275. required-features = ["crypto"]
  276. [[example]]
  277. name = "lead"
  278. path = "example/lead.rs"
  279. required-features = ["node"]
  280. [[example]]
  281. name = "crypsinous"
  282. path = "example/crypsinous.rs"
  283. required-features = ["node"]