Cargo.toml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. [package]
  2. name = "darkfi"
  3. version = "0.4.1"
  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/darkfid",
  21. "bin/darkfid2",
  22. #"bin/drk",
  23. "bin/faucetd",
  24. #"bin/fud/fu",
  25. "bin/fud/fud",
  26. "bin/genev/genevd",
  27. "bin/genev/genev-cli",
  28. "bin/darkirc",
  29. "bin/tau/taud",
  30. "bin/tau/tau-cli",
  31. "bin/vanityaddr",
  32. "bin/lilith",
  33. "src/sdk",
  34. "src/sdk/python",
  35. "src/serial",
  36. "src/serial/derive",
  37. "src/serial/derive-internal",
  38. "src/contract/test-harness",
  39. "src/contract/money",
  40. "src/contract/dao",
  41. "src/contract/consensus",
  42. "src/contract/deployooor",
  43. #"example/dchat",
  44. ]
  45. [dependencies]
  46. # Hard dependencies
  47. libc = "0.2.147"
  48. log = "0.4.20"
  49. thiserror = "1.0.47"
  50. # async-runtime
  51. async-trait = {version = "0.1.73", optional = true}
  52. futures = {version = "0.3.28", optional = true}
  53. smol = {version = "1.3.0", optional = true}
  54. pin-project-lite = {version = "0.2.13", optional = true}
  55. # Networking
  56. async-rustls = {version = "0.4.0", features = ["dangerous_configuration"], optional = true}
  57. # Pluggable Transports
  58. socket2 = {version = "0.5.3", features = ["all"], optional = true}
  59. arti-client = {version = "0.10.0", default-features = false, features = ["async-std", "rustls", "onion-service-client"], optional = true}
  60. tor-hscrypto = {version = "0.3.1", optional = true}
  61. # TLS cert utilities
  62. ed25519-compact = {version = "2.0.4", optional = true}
  63. rcgen = {version = "0.11.1", optional = true}
  64. rustls-pemfile = {version = "1.0.3", optional = true}
  65. x509-parser = {version = "0.15.1", features = ["validate", "verify"], optional = true}
  66. # Encoding
  67. bs58 = {version = "0.5.0", optional = true}
  68. serde = {version = "1.0.188", features = ["derive"], optional = true}
  69. tinyjson = {version = "2.5.1", optional = true}
  70. semver = {version = "1.0.18", optional = true}
  71. structopt = {version= "0.3.26", optional = true}
  72. structopt-toml = {version= "0.5.1", optional = true}
  73. toml = {version = "0.7.6", optional = true}
  74. # Big float high precision arithmetics
  75. dashu = {version = "0.3.1", optional = true}
  76. # Utilities
  77. # TODO: check chrono usage and impl our own
  78. chrono = {version = "0.4.26", optional = true}
  79. darkfi-serial = {path = "src/serial", optional = true}
  80. darkfi-derive = {path = "src/serial/derive", optional = true}
  81. lazy_static = {version = "1.4.0", optional = true}
  82. url = {version = "2.4.1", features = ["serde"], optional = true}
  83. # Misc
  84. simplelog = {version = "0.12.1", optional = true}
  85. # Crypto
  86. rand = {version = "0.8.5", optional = true}
  87. blake3 = {version = "1.4.1", features = ["rayon"], optional = true}
  88. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  89. halo2_proofs = {version = "0.3.0", features = ["circuit-params"], optional = true}
  90. halo2_gadgets = {version = "0.3.0", features = ["circuit-params"], optional = true}
  91. # Smart contract runtime
  92. darkfi-sdk = {path = "src/sdk", optional = true}
  93. wasmer = {version = "4.1.2", optional = true}
  94. wasmer-compiler-singlepass = {version = "4.1.2", optional = true}
  95. wasmer-middlewares = {version = "4.1.2", optional = true}
  96. # Wallet management
  97. rusqlite = {version = "0.29.0", features = ["sqlcipher"], optional = true}
  98. # Blockchain store
  99. sled = {version = "0.34.7", optional = true}
  100. sled-overlay = {version = "0.0.8", optional = true}
  101. [dev-dependencies]
  102. clap = {version = "4.4.1", features = ["derive"]}
  103. halo2_proofs = {version = "0.3.0", features = ["dev-graph", "sanity-checks"]}
  104. halo2_gadgets = "0.3.0"
  105. plotters = "0.3.5"
  106. easy-parallel = "3.3.0"
  107. prettytable-rs = "0.10.0"
  108. # -----BEGIN LIBRARY FEATURES-----
  109. [features]
  110. async-daemonize = []
  111. async-serial = ["darkfi-serial/async"]
  112. async-sdk = [
  113. "darkfi-sdk/async",
  114. "async-serial",
  115. ]
  116. blockchain = [
  117. "blake3",
  118. "sled",
  119. "sled-overlay",
  120. "async-sdk",
  121. "async-serial",
  122. "tx",
  123. "util",
  124. "zk",
  125. "zkas",
  126. ]
  127. validator = [
  128. "async-trait",
  129. "blake3",
  130. "crypto_api_chachapoly",
  131. "dashu",
  132. "halo2_proofs",
  133. "lazy_static",
  134. "rand",
  135. "smol",
  136. "sled",
  137. "url",
  138. "async-sdk",
  139. "async-serial",
  140. "blockchain",
  141. "net",
  142. "rpc",
  143. "system",
  144. "tx",
  145. "util",
  146. "wallet",
  147. "wasm-runtime",
  148. "zk",
  149. "zkas",
  150. ]
  151. geode = [
  152. "blake3",
  153. "futures",
  154. "smol",
  155. ]
  156. event-graph = [
  157. "async-trait",
  158. "blake3",
  159. "rand",
  160. "smol",
  161. "tinyjson",
  162. "darkfi-serial",
  163. "darkfi-serial/collections",
  164. "darkfi-serial/hash",
  165. "net",
  166. "system",
  167. "util",
  168. ]
  169. p2p-unix = []
  170. p2p-tcp = ["socket2"]
  171. p2p-tor = ["arti-client", "tor-hscrypto"]
  172. p2p-nym = []
  173. net = [
  174. "async-rustls",
  175. "async-trait",
  176. "ed25519-compact",
  177. "futures",
  178. "rand",
  179. "rcgen",
  180. "rustls-pemfile",
  181. "semver",
  182. "smol",
  183. "serde",
  184. "structopt",
  185. "structopt-toml",
  186. "url",
  187. "x509-parser",
  188. "darkfi-serial",
  189. "darkfi-serial/url",
  190. "async-serial",
  191. "system",
  192. "util",
  193. "p2p-tcp",
  194. "p2p-tor",
  195. #"p2p-nym",
  196. "p2p-unix",
  197. ]
  198. rpc = [
  199. "async-trait",
  200. "futures",
  201. "rand",
  202. "smol",
  203. "tinyjson",
  204. "url",
  205. "net",
  206. "system",
  207. "util",
  208. ]
  209. system = [
  210. "pin-project-lite",
  211. "rand",
  212. "smol",
  213. ]
  214. tx = [
  215. "blake3",
  216. "rand",
  217. "async-sdk",
  218. "async-serial",
  219. "zk",
  220. ]
  221. util = [
  222. "simplelog",
  223. "tinyjson",
  224. "darkfi-serial",
  225. ]
  226. wallet = [
  227. "rusqlite",
  228. "smol",
  229. ]
  230. wasm-runtime = [
  231. "wasmer",
  232. "wasmer-compiler-singlepass",
  233. "wasmer-middlewares",
  234. "darkfi-sdk",
  235. "darkfi-serial",
  236. "blockchain",
  237. "util",
  238. "zk",
  239. "zkas",
  240. ]
  241. zk = [
  242. "halo2_proofs",
  243. "halo2_gadgets",
  244. "rand",
  245. "async-serial",
  246. "async-sdk",
  247. "zkas",
  248. ]
  249. zkas = [
  250. "darkfi-serial",
  251. ]
  252. # -----END LIBRARY FEATURES-----
  253. [patch.crates-io]
  254. halo2_proofs = {git="https://github.com/parazyd/halo2", branch="v4"}
  255. halo2_gadgets = {git="https://github.com/parazyd/halo2", branch="v4"}
  256. arti-client = {git="https://gitlab.torproject.org/tpo/core/arti", rev="3fdadcc7509f60cfdfc51df2664aaf2f73bbd2f0"}
  257. tor-hscrypto = {git="https://gitlab.torproject.org/tpo/core/arti", rev="3fdadcc7509f60cfdfc51df2664aaf2f73bbd2f0"}
  258. blake2b_simd = {git="https://github.com/parazyd/blake2_simd", branch="impl-common"}