Cargo.toml 6.9 KB

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