Cargo.toml 8.2 KB

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