Cargo.toml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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/fud/fu",
  25. "bin/fud/fud",
  26. "bin/ircd",
  27. "bin/ircd2",
  28. "bin/dnetview",
  29. "bin/dao/daod",
  30. "bin/dao/dao-cli",
  31. "bin/tau/taud",
  32. "bin/tau/tau-cli",
  33. "bin/darkwiki/darkwikid",
  34. "bin/darkwiki/darkwiki-cli",
  35. "bin/vanityaddr",
  36. "bin/lilith",
  37. "src/sdk",
  38. "src/serial",
  39. "src/serial/derive",
  40. "src/serial/derive-internal",
  41. "example/dchat",
  42. ]
  43. [dependencies]
  44. # Hard dependencies
  45. libc = "0.2.134"
  46. log = "0.4.17"
  47. thiserror = "1.0.37"
  48. # async-runtime
  49. async-std = {version = "1.12.0", features = ["attributes"], optional = true}
  50. async-trait = {version = "0.1.57", optional = true}
  51. futures = {version = "0.3.24", optional = true}
  52. smol = {version = "1.2.5", optional = true}
  53. # Networking
  54. futures-rustls = {version = "0.22.2", features = ["dangerous_configuration"], optional = true}
  55. iprange = {version = "0.6.7", optional = true}
  56. ipnet = {version = "2.5.0", optional = true}
  57. socket2 = {version = "0.4.7", optional = true}
  58. # TLS cert utilities
  59. ed25519-compact = {version = "1.0.16", features = ["pem"], optional = true}
  60. rcgen = {version = "0.10.0", features = ["pem"], optional = true}
  61. rustls-pemfile = {version = "1.0.1", optional = true}
  62. # Encoding
  63. bs58 = {version = "0.4.0", optional = true}
  64. hex = {version = "0.4.3", optional = true}
  65. serde_json = {version = "1.0.85", optional = true}
  66. serde = {version = "1.0.145", features = ["derive"], optional = true}
  67. structopt = {version= "0.3.26", optional = true}
  68. structopt-toml = {version= "0.5.1", optional = true}
  69. toml = {version = "0.5.9", optional = true}
  70. # Utilities
  71. # TODO: check chrono usage and impl our own
  72. chrono = {version = "0.4.22", optional = true}
  73. darkfi-serial = {path = "src/serial", optional = true}
  74. darkfi-derive = {path = "src/serial/derive", optional = true}
  75. darkfi-derive-internal = {path = "src/serial/derive-internal", optional = true}
  76. fxhash = {version = "0.2.1", optional = true}
  77. indexmap = {version = "1.9.1", optional = true}
  78. itertools = {version = "0.10.5", optional = true}
  79. lazy-init = {version = "0.5.1", optional = true}
  80. lazy_static = {version = "1.4.0", optional = true}
  81. subtle = {version = "2.4.1", optional = true}
  82. # TODO: Test without serde
  83. url = {version = "2.3.1", features = ["serde"], optional = true}
  84. # Misc
  85. # TODO: Implement something simple and kill these deps
  86. indicatif = {version = "0.17.1", optional = true}
  87. simplelog = {version = "0.12.0", optional = true}
  88. termion = {version = "1.5.6", optional = true}
  89. # Websockets
  90. async-tungstenite = {version = "0.17.2", optional = true}
  91. tungstenite = {version = "0.17.3", optional = true}
  92. # socks5
  93. fast-socks5 = {version = "0.4.3", optional = true}
  94. # Crypto
  95. rand = {version = "0.8.5", optional = true}
  96. blake2b_simd = {version = "1.0.0", optional = true}
  97. blake3 = {version = "1.3.1", optional = true}
  98. chacha20poly1305 = {version = "0.10.1", optional = true}
  99. halo2_proofs = {version = "0.2.0", optional = true}
  100. halo2_gadgets = {version = "0.2.0", optional = true}
  101. incrementalmerkletree = {version = "0.3.0", optional = true}
  102. num-bigint = {version = "0.4.3", optional = true}
  103. num-traits = {version = "0.2.15", optional = true}
  104. pasta_curves = {version = "0.4.0", optional = true}
  105. sha2 = {version = "0.10.6", optional = true}
  106. # Smart contract runtime
  107. darkfi-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. libsqlite3-sys = {version = "0.24.2", features = ["bundled-sqlcipher"], optional = true }
  113. sqlx = {version = "0.6.2", features = ["runtime-async-std-native-tls", "sqlite"], optional = true}
  114. # Blockchain store
  115. sled = {version = "0.34.7", optional = true}
  116. # big float
  117. dashu = { version = "0.2.0", git = "https://github.com/ertosns/dashu" }
  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. plotters = "0.3.4"
  123. env_logger = "0.9.1"
  124. easy-parallel = "3.2.0"
  125. # -----BEGIN LIBRARY FEATURES-----
  126. [features]
  127. async-runtime = [
  128. "async-std",
  129. "async-trait",
  130. "futures",
  131. "smol",
  132. ]
  133. blockchain = [
  134. "blake3",
  135. "chrono",
  136. "halo2_gadgets",
  137. "halo2_proofs",
  138. "incrementalmerkletree",
  139. "lazy-init",
  140. "lazy_static",
  141. "pasta_curves",
  142. "rand",
  143. "sled",
  144. "url",
  145. "async-runtime",
  146. "crypto",
  147. "darkfi-sdk",
  148. "darkfi-serial",
  149. "net",
  150. "tx",
  151. "node",
  152. "util",
  153. ]
  154. crypto = [
  155. "blake2b_simd",
  156. "blake3",
  157. "bs58",
  158. "chacha20poly1305",
  159. "fxhash",
  160. "halo2_gadgets",
  161. "halo2_proofs",
  162. "hex",
  163. "incrementalmerkletree",
  164. "lazy_static",
  165. "num-bigint",
  166. "num-traits",
  167. "pasta_curves",
  168. "rand",
  169. "serde",
  170. "serde_json",
  171. "sha2",
  172. "subtle",
  173. "darkfi-sdk",
  174. "darkfi-serial",
  175. "darkfi-serial/crypto",
  176. "util",
  177. "zkas",
  178. ]
  179. dht = [
  180. "blake3",
  181. "chrono",
  182. "rand",
  183. "async-runtime",
  184. "darkfi-serial",
  185. "darkfi-serial/collections",
  186. "darkfi-serial/hash",
  187. "net",
  188. ]
  189. net = [
  190. "fxhash",
  191. "ed25519-compact",
  192. "fast-socks5",
  193. "futures-rustls",
  194. "hex",
  195. "iprange",
  196. "ipnet",
  197. "structopt",
  198. "structopt-toml",
  199. "rand",
  200. "rcgen",
  201. "rustls-pemfile",
  202. "serde",
  203. "serde_json",
  204. "socket2",
  205. "url",
  206. "async-runtime",
  207. "darkfi-serial",
  208. "darkfi-serial/async",
  209. "darkfi-serial/url",
  210. "system",
  211. "util",
  212. ]
  213. node = [
  214. "bs58",
  215. "incrementalmerkletree",
  216. "lazy-init",
  217. "async-runtime",
  218. "blockchain",
  219. "crypto",
  220. "darkfi-serial",
  221. "tx",
  222. "wallet",
  223. ]
  224. raft = [
  225. "chrono",
  226. "fxhash",
  227. "rand",
  228. "sled",
  229. "async-runtime",
  230. "darkfi-serial",
  231. "net",
  232. "util",
  233. ]
  234. rpc = [
  235. "hex",
  236. "rand",
  237. "serde",
  238. "serde_json",
  239. "url",
  240. "async-runtime",
  241. "darkfi-serial",
  242. "net",
  243. ]
  244. system = [
  245. "fxhash",
  246. "rand",
  247. "async-runtime",
  248. ]
  249. tx = [
  250. "incrementalmerkletree",
  251. "rand",
  252. "darkfi-serial",
  253. "crypto",
  254. ]
  255. util = [
  256. "chrono",
  257. "indicatif",
  258. "rand",
  259. "simplelog",
  260. "serde",
  261. "serde_json",
  262. "termion",
  263. "toml",
  264. "url",
  265. "darkfi-serial",
  266. ]
  267. wallet = [
  268. "async-std",
  269. "bs58",
  270. "rand",
  271. "sqlx",
  272. "incrementalmerkletree",
  273. "libsqlite3-sys",
  274. "crypto",
  275. "darkfi-serial",
  276. "util",
  277. ]
  278. wasm-runtime = [
  279. "wasmer",
  280. "wasmer-compiler-singlepass",
  281. "wasmer-middlewares",
  282. "darkfi-sdk",
  283. "node",
  284. ]
  285. websockets = [
  286. "async-tungstenite",
  287. "tungstenite",
  288. ]
  289. zkas = [
  290. "termion",
  291. "indexmap",
  292. "itertools",
  293. "darkfi-serial",
  294. ]
  295. # -----END LIBRARY FEATURES-----
  296. [[example]]
  297. name = "net"
  298. path = "example/net.rs"
  299. required-features = ["async-runtime", "net"]
  300. [[example]]
  301. name = "tx"
  302. path = "example/tx.rs"
  303. required-features = ["node"]
  304. [[example]]
  305. name = "zk"
  306. path = "example/zk.rs"
  307. required-features = ["crypto"]
  308. [[example]]
  309. name = "dao"
  310. path = "example/dao/src/dao.rs"
  311. required-features = ["crypto", "rpc"]
  312. [[example]]
  313. name = "lead"
  314. path = "example/lead.rs"
  315. required-features = ["node"]
  316. [[example]]
  317. name = "crypsinous"
  318. path = "example/crypsinous.rs"
  319. required-features = ["node"]