Cargo.toml 6.7 KB

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