Cargo.toml 6.6 KB

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