Cargo.toml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. [package]
  2. name = "darkfi"
  3. version = "0.5.0"
  4. homepage = "https://dark.fi"
  5. description = "Anonymous. Uncensored. Sovereign."
  6. authors = ["Dyne.org foundation <foundation@dyne.org>"]
  7. repository = "https://codeberg.org/darkrenaissance/darkfi"
  8. license = "AGPL-3.0-only"
  9. edition = "2021"
  10. [lib]
  11. name = "darkfi"
  12. doctest = false
  13. bench = false
  14. [workspace]
  15. members = [
  16. "bin/zkas",
  17. "bin/darkfid",
  18. "bin/explorer",
  19. "bin/drk",
  20. "bin/fud/fu",
  21. "bin/fud/fud",
  22. "bin/genev/genevd",
  23. "bin/genev/genev-cli",
  24. "bin/darkirc",
  25. "bin/tau/taud",
  26. "bin/vanityaddr",
  27. "bin/lilith",
  28. "src/sdk",
  29. "src/sdk/python",
  30. "src/serial",
  31. "src/serial/derive",
  32. "src/serial/derive-internal",
  33. "src/contract/test-harness",
  34. "src/contract/money",
  35. "src/contract/dao",
  36. "src/contract/deployooor",
  37. "example/dchat/dchatd",
  38. ]
  39. [dependencies]
  40. # Hard dependencies
  41. libc = "0.2.186"
  42. thiserror = "2.0.18"
  43. tracing = "0.1.44"
  44. parking_lot = "0.12.5"
  45. # async-runtime
  46. async-trait = {version = "0.1.89", optional = true}
  47. async-std = {version = "1.13.2", optional = true}
  48. futures = {version = "0.3.32", optional = true}
  49. smol = {version = "2.0.2", optional = true}
  50. pin-project-lite = {version = "0.2.17", optional = true}
  51. # Networking
  52. futures-rustls = {version = "0.26.0", default-features = false, features = ["logging", "tls12", "ring"], optional = true}
  53. # Pluggable Transports
  54. socket2 = {version = "0.6.3", features = ["all"], optional = true}
  55. arti-client = {version = "0.42.0", default-features = false, features = ["async-std", "compression", "error_detail", "rustls", "onion-service-client", "onion-service-service"], optional = true}
  56. tor-error = {version = "0.42.0", optional = true}
  57. tor-rtcompat = {version = "0.42.0", features = ["async-std", "rustls"], optional = true}
  58. tor-hscrypto = {version = "0.42.0", optional = true}
  59. tor-hsservice = {version = "0.42.0", optional = true}
  60. tor-proto = {version = "0.42.0", optional = true}
  61. tor-cell = {version = "0.42.0", optional = true}
  62. quinn-smol = {git="https://github.com/parazyd/quinn", branch="main", default-features = false, features = ["rustls-ring", "runtime-smol"], optional = true}
  63. # TLS cert utilities
  64. ed25519-compact = {version = "2.3.0", optional = true}
  65. rcgen = {version = "0.14.8", optional = true, features = ["pem"]}
  66. x509-parser = {version = "0.18.1", features = ["validate", "verify"], optional = true}
  67. # UPnP IGD for NAT traversal
  68. oxy-upnp-igd = {version = "0.1", optional = true}
  69. # Encoding
  70. bs58 = {version = "0.5.1", optional = true}
  71. hex = {version = "0.4.3", optional = true}
  72. serde = {version = "1.0.228", features = ["derive"], optional = true}
  73. tinyjson = {version = "2.5.1", optional = true}
  74. httparse = {version = "1.10.1", optional = true}
  75. primitive-types = {version = "0.14.0", optional = true}
  76. semver = {version = "1.0.28", optional = true}
  77. structopt = {version= "0.3.26", optional = true}
  78. structopt-toml = {version= "0.5.1", optional = true}
  79. toml = {version = "0.9.8", optional = true}
  80. # Utilities
  81. darkfi-serial = {path = "src/serial", optional = true}
  82. lazy_static = {version = "1.5.0", optional = true}
  83. num-bigint = {version = "0.4.6", optional = true}
  84. url = {version = "2.5.8", features = ["serde"], optional = true}
  85. # Misc
  86. tracing-subscriber = { version = "0.3.23", default-features = false, features = ["fmt"], optional = true }
  87. tracing-appender = {version = "0.2.5", optional = true }
  88. nu-ansi-term = {version = "0.50.3", optional = true}
  89. # Crypto
  90. rand = {version = "0.8.6", optional = true}
  91. blake3 = {version = "1.8.5", features = ["rayon"], optional = true}
  92. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  93. halo2_proofs = {version = "0.3.2", features = ["circuit-params"], optional = true}
  94. halo2_gadgets = {version = "0.4.0", features = ["circuit-params"], optional = true}
  95. sha2 = {version = "0.11.0", optional = true}
  96. # Smart contract runtime
  97. darkfi-sdk = {path = "src/sdk", optional = true}
  98. wasmer = {version = "6.1.0", features = ["singlepass"], optional = true}
  99. wasmer-compiler-singlepass = {version = "6.1.0", optional = true}
  100. wasmer-middlewares = {version = "6.1.0", optional = true}
  101. # Blockchain store
  102. sled-overlay = {version = "0.1.20", optional = true}
  103. # Miner
  104. randomx = {git = "https://codeberg.org/darkrenaissance/RandomX", rev = "0e31d5a", optional = true}
  105. monero = {version = "0.21.0", optional = true}
  106. tiny-keccak = { version = "2.0.2", features = ["keccak"], optional = true }
  107. [dev-dependencies]
  108. clap = {version = "4.4.11", features = ["derive"]}
  109. halo2_proofs = {version = "0.3.2", features = ["circuit-params", "dev-graph", "sanity-checks"]}
  110. halo2_gadgets = {version = "0.4.0", features = ["circuit-params", "test-dependencies"]}
  111. plotters = "0.3.7"
  112. easy-parallel = "3.3.1"
  113. prettytable-rs = "0.10.0"
  114. # Used for benchmarks
  115. criterion = {version = "0.8.2", features = ["html_reports"]}
  116. # -----BEGIN LIBRARY FEATURES-----
  117. [features]
  118. async-daemonize = ["system"]
  119. async-serial = ["darkfi-serial/async"]
  120. async-sdk = [
  121. "darkfi-sdk/async",
  122. "async-serial",
  123. ]
  124. blockchain = [
  125. "sled-overlay",
  126. "monero",
  127. "num-bigint",
  128. "primitive-types",
  129. "sha2",
  130. "tiny-keccak",
  131. "darkfi-serial/num-bigint",
  132. "darkfi-serial/sled-overlay",
  133. "tx",
  134. "util",
  135. ]
  136. validator = [
  137. "crypto_api_chachapoly",
  138. "hex",
  139. "lazy_static",
  140. "monero",
  141. "randomx",
  142. "smol",
  143. "blockchain",
  144. "system",
  145. "wasm-runtime",
  146. ]
  147. geode = [
  148. "blake3",
  149. "bs58",
  150. "futures",
  151. "smol",
  152. ]
  153. event-graph = [
  154. "async-std",
  155. "blake3",
  156. "num-bigint",
  157. "sled-overlay",
  158. "smol",
  159. "tinyjson",
  160. "bs58",
  161. "darkfi-serial",
  162. "darkfi-serial/collections",
  163. "darkfi-serial/hash",
  164. "net",
  165. ]
  166. p2p-nym = []
  167. p2p-tor = [
  168. "arti-client",
  169. "tor-hsservice",
  170. "tor-hscrypto",
  171. "tor-error",
  172. "tor-rtcompat",
  173. "tor-proto",
  174. "tor-cell",
  175. ]
  176. upnp-igd = [
  177. "oxy-upnp-igd",
  178. ]
  179. net-defaults = [
  180. "async-trait",
  181. "ed25519-compact",
  182. "futures",
  183. "futures-rustls",
  184. "rcgen",
  185. "semver",
  186. "serde",
  187. "socket2",
  188. "structopt",
  189. "structopt-toml",
  190. "url",
  191. "x509-parser",
  192. "darkfi-serial/url",
  193. "async-serial",
  194. "system",
  195. "util",
  196. "p2p-tor",
  197. #"p2p-nym",
  198. "p2p-i2p",
  199. "p2p-socks5",
  200. "p2p-unix",
  201. "p2p-quic",
  202. ]
  203. p2p-unix = []
  204. p2p-socks5 = []
  205. p2p-i2p = [
  206. "p2p-socks5"
  207. ]
  208. p2p-quic = [
  209. "quinn-smol"
  210. ]
  211. net = ["net-defaults"]
  212. rpc = [
  213. "async-trait",
  214. "httparse",
  215. "net",
  216. ]
  217. system = [
  218. "futures",
  219. "pin-project-lite",
  220. "rand",
  221. "smol",
  222. ]
  223. tx = [
  224. "blake3",
  225. "async-sdk",
  226. "async-serial",
  227. "zk",
  228. ]
  229. util = [
  230. "tinyjson",
  231. "tracing-subscriber",
  232. "tracing-appender",
  233. "nu-ansi-term",
  234. "smol",
  235. "darkfi-serial",
  236. ]
  237. wasm-runtime = [
  238. "wasmer",
  239. "wasmer-compiler-singlepass",
  240. "wasmer-middlewares",
  241. "darkfi-sdk/wasm",
  242. "blockchain",
  243. ]
  244. zk = [
  245. "halo2_proofs",
  246. "halo2_gadgets",
  247. "rand",
  248. "async-sdk",
  249. "zkas",
  250. ]
  251. zkas = [
  252. "darkfi-serial",
  253. ]
  254. dht = [
  255. "async-sdk",
  256. "blake3",
  257. "bs58",
  258. "futures",
  259. "num-bigint",
  260. "serde",
  261. "structopt",
  262. "structopt-toml",
  263. "smol",
  264. "darkfi-serial",
  265. "net",
  266. ]
  267. # -----END LIBRARY FEATURES-----
  268. [patch.crates-io]
  269. halo2_proofs = {git="https://github.com/parazyd/halo2", branch="v032"}
  270. halo2_gadgets = {git="https://github.com/parazyd/halo2", branch="v032"}
  271. # Forked "url" crate with added P2P schemas
  272. url = {git="https://github.com/darkrenaissance/rust-url", branch="v258"}
  273. [[bench]]
  274. name = "zk_arith"
  275. harness = false
  276. path = "bench/zk_arith.rs"
  277. [[bench]]
  278. name = "zk_from_json"
  279. harness = false
  280. path = "bench/zk_from_json.rs"
  281. [[bench]]
  282. name = "sled"
  283. harness = false
  284. path = "bench/sled.rs"
  285. # Crossbeam SkipMap vs Mutex protected HashMap.
  286. # Uncomment to enable, and add the following to dev-dependencies:
  287. # crossbeam-skiplist = "0.1.3"
  288. # rand = "0.8.5"
  289. #[[bench]]
  290. #name = "crossbeam"
  291. #harness = false
  292. #path = "bench/crossbeam.rs"
  293. # Top-level lints. Enabled optionally on a crate-level in their respective Cargo.toml files.
  294. [workspace.lints.clippy]
  295. #arithmetic_side_effects = "warn"
  296. #eq_op = "warn"
  297. #float_cmp = "warn"
  298. # integer_division = "warn"
  299. #large_futures = "warn"
  300. #large_stack_arrays = "warn"
  301. #large_stack_frames = "warn"
  302. #lossy_float_literal = "warn"
  303. #manual_slice_size_calculation = "warn"
  304. #modulo_one = "warn"
  305. #out_of_bounds_indexing = "warn"
  306. #overflow_check_conditional = "warn"
  307. #recursive_format_impl = "warn"
  308. #unchecked_duration_subtraction = "warn"