Cargo.toml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. [package]
  2. name = "darkfi"
  3. version = "0.4.0"
  4. homepage = "https://dark.fi"
  5. description = "Anonymous. Uncensored. Sovereign."
  6. authors = ["Dyne.org foundation <foundation@dyne.org>"]
  7. repository = "https://github.com/darkrenaissance/darkfi"
  8. license = "AGPL-3.0-only"
  9. edition = "2021"
  10. [lib]
  11. name = "darkfi"
  12. doctest = false
  13. #[profile.release]
  14. #debug = true
  15. #lto = "fat"
  16. #codegen-units = 1
  17. [workspace]
  18. members = [
  19. "bin/zkas",
  20. #"bin/cashierd",
  21. "bin/darkfid",
  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. "bin/zktool",
  38. "src/sdk",
  39. "src/serial",
  40. "src/serial/derive",
  41. "src/serial/derive-internal",
  42. "src/contract/money",
  43. "src/contract/dao",
  44. "example/dchat",
  45. ]
  46. [dependencies]
  47. # Hard dependencies
  48. libc = "0.2.139"
  49. log = "0.4.17"
  50. thiserror = "1.0.38"
  51. # async-runtime
  52. async-std = {version = "1.12.0", features = ["attributes"], optional = true}
  53. async-trait = {version = "0.1.64", optional = true}
  54. futures = {version = "0.3.26", optional = true}
  55. smol = {version = "1.3.0", optional = true}
  56. # Networking
  57. futures-rustls = {version = "0.22.2", features = ["dangerous_configuration"], optional = true}
  58. iprange = {version = "0.6.7", optional = true}
  59. ipnet = {version = "2.7.1", optional = true}
  60. socket2 = {version = "0.4.7", optional = true}
  61. # TLS cert utilities
  62. ed25519-compact = {version = "2.0.4", features = ["pem"], optional = true}
  63. rcgen = {version = "0.10.0", features = ["pem"], optional = true}
  64. rustls-pemfile = {version = "1.0.2", optional = true}
  65. # Encoding
  66. bs58 = {version = "0.4.0", optional = true}
  67. hex = {version = "0.4.3", optional = true}
  68. serde_json = {version = "1.0.91", optional = true}
  69. serde = {version = "1.0.152", features = ["derive"], optional = true}
  70. structopt = {version= "0.3.26", optional = true}
  71. structopt-toml = {version= "0.5.1", optional = true}
  72. toml = {version = "0.7.1", optional = true}
  73. # big float
  74. dashu = { version = "0.2.0", git = "https://github.com/ertosns/dashu", optional=true }
  75. # Utilities
  76. # TODO: check chrono usage and impl our own
  77. chrono = {version = "0.4.23", optional = true}
  78. darkfi-serial = {path = "src/serial", optional = true}
  79. darkfi-derive = {path = "src/serial/derive", optional = true}
  80. darkfi-derive-internal = {path = "src/serial/derive-internal", optional = true}
  81. indexmap = {version = "1.9.2", optional = true}
  82. itertools = {version = "0.10.5", optional = true}
  83. lazy_static = {version = "1.4.0", optional = true}
  84. # TODO: Test without serde
  85. url = {version = "2.3.1", features = ["serde"], optional = true}
  86. # Misc
  87. # TODO: Implement something simple and kill these deps
  88. indicatif = {version = "0.17.3", optional = true}
  89. simplelog = {version = "0.12.0", optional = true}
  90. ripemd = {version = "0.1.3", optional = true}
  91. # Websockets
  92. async-tungstenite = {version = "0.19.0", optional = true}
  93. # socks5
  94. fast-socks5 = {version = "0.4.3", optional = true}
  95. # Crypto
  96. rand = {version = "0.8.5", optional = true}
  97. blake3 = {version = "1.3.3", optional = true}
  98. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  99. halo2_proofs = {version = "0.2.0", optional = true}
  100. halo2_gadgets = {version = "0.2.0", optional = true}
  101. # Smart contract runtime
  102. darkfi-sdk = {path = "src/sdk", optional = true}
  103. wasmer = {version = "3.1.1", optional = true}
  104. wasmer-compiler-singlepass = {version = "3.1.1", optional = true}
  105. wasmer-middlewares = {version = "3.1.1", optional = true}
  106. # Wallet management
  107. libsqlite3-sys = {version = "0.24.1", features = ["bundled-sqlcipher"], optional = true }
  108. sqlx = {version = "0.6.2", features = ["runtime-async-std-rustls", "sqlite"], optional = true}
  109. # Blockchain store
  110. sled = {version = "0.34.7", optional = true}
  111. [dev-dependencies]
  112. clap = {version = "4.1.4", features = ["derive"]}
  113. halo2_proofs = {version = "0.2.0", features = ["dev-graph", "gadget-traces", "sanity-checks"]}
  114. halo2_gadgets = {version = "0.2.0", features = ["dev-graph", "test-dependencies"]}
  115. plotters = "0.3.4"
  116. easy-parallel = "3.2.0"
  117. # -----BEGIN LIBRARY FEATURES-----
  118. [features]
  119. async-runtime = [
  120. "async-std",
  121. "async-trait",
  122. "futures",
  123. "smol",
  124. ]
  125. blockchain = [
  126. "blake3",
  127. "bs58", # <-- remove after we get rid of json for notifications
  128. "chrono",
  129. "dashu",
  130. "halo2_proofs",
  131. "lazy_static",
  132. "rand",
  133. "sled",
  134. "sqlx",
  135. "url",
  136. "crypto_api_chachapoly",
  137. "async-runtime",
  138. "darkfi-sdk",
  139. "darkfi-serial/crypto",
  140. "net",
  141. "rpc",
  142. "tx",
  143. "util",
  144. "wallet",
  145. "wasm-runtime",
  146. ]
  147. dht = [
  148. "blake3",
  149. "chrono",
  150. "rand",
  151. "async-runtime",
  152. "darkfi-serial",
  153. "darkfi-serial/collections",
  154. "darkfi-serial/hash",
  155. "net",
  156. ]
  157. event-graph = [
  158. "ripemd",
  159. "chrono",
  160. "hex",
  161. "rand",
  162. "async-runtime",
  163. "darkfi-serial",
  164. "net",
  165. ]
  166. net = [
  167. "ed25519-compact",
  168. "fast-socks5",
  169. "futures-rustls",
  170. "hex",
  171. "iprange",
  172. "ipnet",
  173. "structopt",
  174. "structopt-toml",
  175. "rand",
  176. "rcgen",
  177. "rustls-pemfile",
  178. "serde",
  179. "serde_json",
  180. "socket2",
  181. "url",
  182. "async-runtime",
  183. "darkfi-serial",
  184. "darkfi-serial/async",
  185. "darkfi-serial/url",
  186. "system",
  187. "util",
  188. ]
  189. raft = [
  190. "chrono",
  191. "rand",
  192. "sled",
  193. "async-runtime",
  194. "darkfi-serial",
  195. "net",
  196. "util",
  197. ]
  198. rpc = [
  199. "hex",
  200. "rand",
  201. "serde",
  202. "serde_json",
  203. "url",
  204. "async-runtime",
  205. "darkfi-serial",
  206. "net",
  207. ]
  208. system = [
  209. "rand",
  210. "async-runtime",
  211. ]
  212. tx = [
  213. "blake3",
  214. "rand",
  215. "async-runtime",
  216. "darkfi-sdk",
  217. "darkfi-serial",
  218. "zk",
  219. ]
  220. util = [
  221. "chrono",
  222. "simplelog",
  223. "serde",
  224. "serde_json",
  225. "toml",
  226. "url",
  227. "darkfi-serial",
  228. ]
  229. wallet = [
  230. "async-std",
  231. "rand",
  232. "sqlx",
  233. "libsqlite3-sys",
  234. "darkfi-serial",
  235. "util",
  236. ]
  237. wasm-runtime = [
  238. "wasmer",
  239. "wasmer-compiler-singlepass",
  240. "wasmer-middlewares",
  241. "blockchain",
  242. "darkfi-sdk",
  243. ]
  244. websockets = [
  245. "async-tungstenite",
  246. ]
  247. zk = [
  248. "halo2_proofs",
  249. "halo2_gadgets",
  250. "rand",
  251. "darkfi-sdk",
  252. "zkas",
  253. ]
  254. zkas = [
  255. "indexmap",
  256. "itertools",
  257. "darkfi-serial",
  258. ]
  259. # -----END LIBRARY FEATURES-----
  260. [[example]]
  261. name = "net"
  262. path = "example/net.rs"
  263. required-features = ["async-runtime", "net"]
  264. [[example]]
  265. name = "zk"
  266. path = "example/zk.rs"
  267. required-features = ["zk"]
  268. [[example]]
  269. name = "zk-inclusion-proof"
  270. path = "example/zk-inclusion-proof.rs"
  271. required-features = ["zk"]