Cargo.toml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  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. bench = false
  14. #[profile.release]
  15. #debug = true
  16. #lto = "fat"
  17. #codegen-units = 1
  18. [workspace]
  19. members = [
  20. "bin/zkas",
  21. "bin/darkfid",
  22. "bin/minerd",
  23. "bin/darkfi-mmproxy",
  24. "bin/drk",
  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/deployooor",
  43. "example/dchat/dchatd",
  44. ]
  45. [dependencies]
  46. # Hard dependencies
  47. libc = "0.2.153"
  48. log = "0.4.21"
  49. thiserror = "1.0.57"
  50. # async-runtime
  51. async-recursion = {version = "1.0.5", optional = true}
  52. async-trait = {version = "0.1.77", optional = true}
  53. futures = {version = "0.3.30", optional = true}
  54. smol = {version = "1.3.0", optional = true}
  55. pin-project-lite = {version = "0.2.13", optional = true}
  56. # Networking
  57. futures-rustls = {version = "0.25.1", optional = true}
  58. # Pluggable Transports
  59. socket2 = {version = "0.5.6", features = ["all"], optional = true}
  60. arti-client = {version = "0.14.1", default-features = false, features = ["async-std", "compression", "error_detail", "rustls", "accel-sha1-asm", "accel-openssl", "onion-service-client", "onion-service-service"], optional = true}
  61. tor-error = {version = "0.6.1", optional = true}
  62. tor-rtcompat = {version = "0.10.0", features = ["async-std", "rustls"], optional = true}
  63. tor-hscrypto = {version = "0.6.1", optional = true}
  64. # TLS cert utilities
  65. ed25519-compact = {version = "2.1.1", optional = true}
  66. rcgen = {version = "0.12.1", optional = true}
  67. rustls-pemfile = {version = "2.1.1", optional = true}
  68. x509-parser = {version = "0.16.0", features = ["validate", "verify"], optional = true}
  69. # Encoding
  70. bs58 = {version = "0.5.0", optional = true}
  71. serde = {version = "1.0.197", features = ["derive"], optional = true}
  72. tinyjson = {version = "2.5.1", optional = true}
  73. semver = {version = "1.0.22", optional = true}
  74. structopt = {version= "0.3.26", optional = true}
  75. structopt-toml = {version= "0.5.1", optional = true}
  76. toml = {version = "0.8.10", optional = true}
  77. # Utilities
  78. # TODO: check chrono usage and impl our own
  79. chrono = {version = "0.4.35", optional = true}
  80. darkfi-serial = {path = "src/serial", optional = true}
  81. darkfi-derive = {path = "src/serial/derive", optional = true}
  82. lazy_static = {version = "1.4.0", optional = true}
  83. num-bigint = {version = "0.4.4", optional = true}
  84. url = {version = "2.5.0", features = ["serde"], optional = true}
  85. # Misc
  86. simplelog = {version = "0.12.2", optional = true}
  87. # Crypto
  88. rand = {version = "0.8.5", optional = true}
  89. blake3 = {version = "1.5.0", 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.2.6", optional = true}
  96. wasmer-compiler-singlepass = {version = "4.2.6", optional = true}
  97. wasmer-middlewares = {version = "4.2.6", optional = true}
  98. # SQLite stuff
  99. rusqlite = {version = "0.31.0", features = ["sqlcipher"], optional = true}
  100. libsqlite3-sys = {version = "0.28.0", features = ["sqlcipher"], optional = true}
  101. # Blockchain store
  102. sled = {version = "0.34.7", optional = true}
  103. sled-overlay = {version = "0.1.1", optional = true}
  104. # Miner
  105. randomx = {git = "https://github.com/darkrenaissance/RandomX", optional = true}
  106. [dev-dependencies]
  107. clap = {version = "4.5.2", 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.1"
  112. prettytable-rs = "0.10.0"
  113. # Used for benchmarks
  114. criterion = { version = "0.4", 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. "blake3",
  125. "sled",
  126. "sled-overlay",
  127. "num-bigint",
  128. "async-sdk",
  129. "async-serial",
  130. "tx",
  131. "util",
  132. "zk",
  133. "zkas",
  134. ]
  135. validator = [
  136. "async-trait",
  137. "blake3",
  138. "crypto_api_chachapoly",
  139. "halo2_proofs",
  140. "lazy_static",
  141. "num-bigint",
  142. "rand",
  143. "randomx",
  144. "smol",
  145. "sled",
  146. "url",
  147. "async-sdk",
  148. "async-serial",
  149. "blockchain",
  150. "net",
  151. "rpc",
  152. "system",
  153. "tx",
  154. "util",
  155. "wasm-runtime",
  156. "zk",
  157. "zkas",
  158. ]
  159. geode = [
  160. "blake3",
  161. "futures",
  162. "smol",
  163. ]
  164. event-graph = [
  165. "async-trait",
  166. "async-recursion",
  167. "blake3",
  168. "num-bigint",
  169. "rand",
  170. "sled",
  171. "sled-overlay",
  172. "smol",
  173. "tinyjson",
  174. "darkfi-serial",
  175. "darkfi-serial/collections",
  176. "darkfi-serial/hash",
  177. "net",
  178. "rpc",
  179. "system",
  180. "util",
  181. ]
  182. p2p-unix = []
  183. p2p-tcp = ["socket2"]
  184. p2p-tor = ["arti-client", "tor-hscrypto", "tor-error", "tor-rtcompat", "libsqlite3-sys"]
  185. p2p-nym = []
  186. net = [
  187. "async-trait",
  188. "ed25519-compact",
  189. "futures",
  190. "futures-rustls",
  191. "rand",
  192. "rcgen",
  193. "rustls-pemfile",
  194. "semver",
  195. "smol",
  196. "serde",
  197. "structopt",
  198. "structopt-toml",
  199. "url",
  200. "x509-parser",
  201. "darkfi-serial",
  202. "darkfi-serial/url",
  203. "async-serial",
  204. "system",
  205. "util",
  206. "p2p-tcp",
  207. "p2p-tor",
  208. #"p2p-nym",
  209. "p2p-unix",
  210. ]
  211. rpc = [
  212. "async-trait",
  213. "rand",
  214. "smol",
  215. "tinyjson",
  216. "url",
  217. "net",
  218. "system",
  219. "util",
  220. ]
  221. system = [
  222. "pin-project-lite",
  223. "rand",
  224. "smol",
  225. ]
  226. tx = [
  227. "blake3",
  228. "rand",
  229. "async-sdk",
  230. "async-serial",
  231. "zk",
  232. ]
  233. util = [
  234. "simplelog",
  235. "tinyjson",
  236. "darkfi-serial",
  237. ]
  238. wasm-runtime = [
  239. "wasmer",
  240. "wasmer-compiler-singlepass",
  241. "wasmer-middlewares",
  242. "darkfi-sdk",
  243. "darkfi-serial",
  244. "blockchain",
  245. "util",
  246. "zk",
  247. "zkas",
  248. ]
  249. zk = [
  250. "halo2_proofs",
  251. "halo2_gadgets",
  252. "rand",
  253. "async-serial",
  254. "async-sdk",
  255. "zkas",
  256. ]
  257. zkas = [
  258. "darkfi-serial",
  259. "darkfi-sdk",
  260. ]
  261. # -----END LIBRARY FEATURES-----
  262. [patch.crates-io]
  263. halo2_proofs = {git="https://github.com/parazyd/halo2", branch="v4"}
  264. halo2_gadgets = {git="https://github.com/parazyd/halo2", branch="v4"}
  265. # Temp rust nightly fix
  266. pathfinder_simd = {git="https://github.com/servo/pathfinder", branch="main"}
  267. [[bench]]
  268. name = "zk_arith"
  269. harness = false
  270. path = "bench/zk_arith.rs"
  271. [[bench]]
  272. name = "zk_from_json"
  273. harness = false
  274. path = "bench/zk_from_json.rs"
  275. [[bench]]
  276. name = "sled"
  277. harness = false
  278. path = "bench/sled.rs"