Cargo.toml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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. # When using musl-libc, some bug happens when linking the system lib, so we need this
  102. [target.'cfg(target_env = "musl")'.dependencies]
  103. libsqlite3-sys = {version = "*", features = ["bundled-sqlcipher"], optional = true}
  104. [dev-dependencies]
  105. clap = {version = "4.4.1", features = ["derive"]}
  106. halo2_proofs = {version = "0.3.0", features = ["dev-graph", "sanity-checks"]}
  107. halo2_gadgets = "0.3.0"
  108. plotters = "0.3.5"
  109. easy-parallel = "3.3.0"
  110. prettytable-rs = "0.10.0"
  111. # -----BEGIN LIBRARY FEATURES-----
  112. [features]
  113. async-daemonize = []
  114. async-serial = ["darkfi-serial/async"]
  115. async-sdk = [
  116. "darkfi-sdk/async",
  117. "async-serial",
  118. ]
  119. blockchain = [
  120. "blake3",
  121. "sled",
  122. "sled-overlay",
  123. "async-sdk",
  124. "async-serial",
  125. "tx",
  126. "util",
  127. "zk",
  128. "zkas",
  129. ]
  130. validator = [
  131. "async-trait",
  132. "blake3",
  133. "crypto_api_chachapoly",
  134. "dashu",
  135. "halo2_proofs",
  136. "lazy_static",
  137. "rand",
  138. "smol",
  139. "sled",
  140. "url",
  141. "async-sdk",
  142. "async-serial",
  143. "blockchain",
  144. "net",
  145. "rpc",
  146. "system",
  147. "tx",
  148. "util",
  149. "wallet",
  150. "wasm-runtime",
  151. "zk",
  152. "zkas",
  153. ]
  154. geode = [
  155. "blake3",
  156. "futures",
  157. "smol",
  158. ]
  159. event-graph = [
  160. "async-trait",
  161. "blake3",
  162. "rand",
  163. "smol",
  164. "tinyjson",
  165. "darkfi-serial",
  166. "darkfi-serial/collections",
  167. "darkfi-serial/hash",
  168. "net",
  169. "system",
  170. "util",
  171. ]
  172. p2p-unix = []
  173. p2p-tcp = ["socket2"]
  174. p2p-tor = ["arti-client", "tor-hscrypto", "libsqlite3-sys"]
  175. p2p-nym = []
  176. net = [
  177. "async-rustls",
  178. "async-trait",
  179. "ed25519-compact",
  180. "futures",
  181. "rand",
  182. "rcgen",
  183. "rustls-pemfile",
  184. "semver",
  185. "smol",
  186. "serde",
  187. "structopt",
  188. "structopt-toml",
  189. "url",
  190. "x509-parser",
  191. "darkfi-serial",
  192. "darkfi-serial/url",
  193. "async-serial",
  194. "system",
  195. "util",
  196. "p2p-tcp",
  197. "p2p-tor",
  198. #"p2p-nym",
  199. "p2p-unix",
  200. ]
  201. rpc = [
  202. "async-trait",
  203. "futures",
  204. "rand",
  205. "smol",
  206. "tinyjson",
  207. "url",
  208. "net",
  209. "system",
  210. "util",
  211. ]
  212. system = [
  213. "pin-project-lite",
  214. "rand",
  215. "smol",
  216. ]
  217. tx = [
  218. "blake3",
  219. "rand",
  220. "async-sdk",
  221. "async-serial",
  222. "zk",
  223. ]
  224. util = [
  225. "simplelog",
  226. "tinyjson",
  227. "darkfi-serial",
  228. ]
  229. wallet = [
  230. "rusqlite",
  231. "smol",
  232. ]
  233. wasm-runtime = [
  234. "wasmer",
  235. "wasmer-compiler-singlepass",
  236. "wasmer-middlewares",
  237. "darkfi-sdk",
  238. "darkfi-serial",
  239. "blockchain",
  240. "util",
  241. "zk",
  242. "zkas",
  243. ]
  244. zk = [
  245. "halo2_proofs",
  246. "halo2_gadgets",
  247. "rand",
  248. "async-serial",
  249. "async-sdk",
  250. "zkas",
  251. ]
  252. zkas = [
  253. "darkfi-serial",
  254. ]
  255. # -----END LIBRARY FEATURES-----
  256. [patch.crates-io]
  257. halo2_proofs = {git="https://github.com/parazyd/halo2", branch="v4"}
  258. halo2_gadgets = {git="https://github.com/parazyd/halo2", branch="v4"}
  259. arti-client = {git="https://gitlab.torproject.org/tpo/core/arti", rev="3fdadcc7509f60cfdfc51df2664aaf2f73bbd2f0"}
  260. tor-hscrypto = {git="https://gitlab.torproject.org/tpo/core/arti", rev="3fdadcc7509f60cfdfc51df2664aaf2f73bbd2f0"}
  261. blake2b_simd = {git="https://github.com/parazyd/blake2_simd", branch="impl-common"}