Cargo.toml 7.9 KB

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