Cargo.toml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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/minerd",
  22. "bin/darkfi-mmproxy",
  23. "bin/drk",
  24. #"bin/fud/fu",
  25. #"bin/fud/fud",
  26. "bin/genev/genevd",
  27. "bin/genev/genev-cli",
  28. "bin/darkirc",
  29. "bin/tau/taud",
  30. #"bin/tau/tau-cli",
  31. "bin/vanityaddr",
  32. "bin/lilith",
  33. "src/sdk",
  34. "src/sdk/python",
  35. "src/serial",
  36. "src/serial/derive",
  37. "src/serial/derive-internal",
  38. "src/contract/test-harness",
  39. "src/contract/money",
  40. "src/contract/dao",
  41. "src/contract/deployooor",
  42. "example/dchat/dchatd",
  43. ]
  44. [dependencies]
  45. # Hard dependencies
  46. libc = "0.2.153"
  47. log = "0.4.21"
  48. thiserror = "1.0.57"
  49. # async-runtime
  50. async-recursion = {version = "1.0.5", optional = true}
  51. async-trait = {version = "0.1.77", optional = true}
  52. futures = {version = "0.3.30", optional = true}
  53. smol = {version = "1.3.0", optional = true}
  54. pin-project-lite = {version = "0.2.13", optional = true}
  55. # Networking
  56. futures-rustls = {version = "0.25.1", optional = true}
  57. # Pluggable Transports
  58. socket2 = {version = "0.5.6", features = ["all"], optional = true}
  59. 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}
  60. tor-error = {version = "0.6.1", optional = true}
  61. tor-rtcompat = {version = "0.10.0", features = ["async-std", "rustls"], optional = true}
  62. tor-hscrypto = {version = "0.6.1", optional = true}
  63. # TLS cert utilities
  64. ed25519-compact = {version = "2.1.1", optional = true}
  65. rcgen = {version = "0.12.1", optional = true}
  66. rustls-pemfile = {version = "2.1.1", optional = true}
  67. x509-parser = {version = "0.16.0", features = ["validate", "verify"], optional = true}
  68. # Encoding
  69. bs58 = {version = "0.5.0", optional = true}
  70. serde = {version = "1.0.197", features = ["derive"], optional = true}
  71. tinyjson = {version = "2.5.1", optional = true}
  72. semver = {version = "1.0.22", optional = true}
  73. structopt = {version= "0.3.26", optional = true}
  74. structopt-toml = {version= "0.5.1", optional = true}
  75. toml = {version = "0.8.10", optional = true}
  76. # Utilities
  77. # TODO: check chrono usage and impl our own
  78. chrono = {version = "0.4.35", optional = true}
  79. darkfi-serial = {path = "src/serial", optional = true}
  80. darkfi-derive = {path = "src/serial/derive", optional = true}
  81. lazy_static = {version = "1.4.0", optional = true}
  82. num-bigint = {version = "0.4.4", optional = true}
  83. url = {version = "2.5.0", features = ["serde"], optional = true}
  84. # Misc
  85. simplelog = {version = "0.12.2", optional = true}
  86. # Crypto
  87. rand = {version = "0.8.5", optional = true}
  88. blake3 = {version = "1.5.0", features = ["rayon"], optional = true}
  89. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  90. halo2_proofs = {version = "0.3.0", features = ["circuit-params"], optional = true}
  91. halo2_gadgets = {version = "0.3.0", features = ["circuit-params"], optional = true}
  92. # Smart contract runtime
  93. darkfi-sdk = {path = "src/sdk", optional = true}
  94. wasmer = {version = "4.2.6", optional = true}
  95. wasmer-compiler-singlepass = {version = "4.2.6", optional = true}
  96. wasmer-middlewares = {version = "4.2.6", optional = true}
  97. # SQLite stuff
  98. rusqlite = {version = "0.31.0", features = ["sqlcipher"], optional = true}
  99. libsqlite3-sys = {version = "0.28.0", features = ["sqlcipher"], optional = true}
  100. # Blockchain store
  101. sled = {version = "0.34.7", optional = true}
  102. sled-overlay = {version = "0.1.0", optional = true}
  103. # Miner
  104. randomx = {git = "https://github.com/darkrenaissance/RandomX", optional = true}
  105. [dev-dependencies]
  106. clap = {version = "4.5.2", features = ["derive"]}
  107. halo2_proofs = {version = "0.3.0", features = ["dev-graph", "sanity-checks"]}
  108. halo2_gadgets = "0.3.0"
  109. plotters = "0.3.5"
  110. easy-parallel = "3.3.1"
  111. prettytable-rs = "0.10.0"
  112. # -----BEGIN LIBRARY FEATURES-----
  113. [features]
  114. async-daemonize = ["system"]
  115. async-serial = ["darkfi-serial/async"]
  116. async-sdk = [
  117. "darkfi-sdk/async",
  118. "async-serial",
  119. ]
  120. blockchain = [
  121. "blake3",
  122. "sled",
  123. "sled-overlay",
  124. "num-bigint",
  125. "async-sdk",
  126. "async-serial",
  127. "tx",
  128. "util",
  129. "zk",
  130. "zkas",
  131. ]
  132. validator = [
  133. "async-trait",
  134. "blake3",
  135. "crypto_api_chachapoly",
  136. "halo2_proofs",
  137. "lazy_static",
  138. "num-bigint",
  139. "rand",
  140. "randomx",
  141. "smol",
  142. "sled",
  143. "url",
  144. "async-sdk",
  145. "async-serial",
  146. "blockchain",
  147. "net",
  148. "rpc",
  149. "system",
  150. "tx",
  151. "util",
  152. "wasm-runtime",
  153. "zk",
  154. "zkas",
  155. ]
  156. geode = [
  157. "blake3",
  158. "futures",
  159. "smol",
  160. ]
  161. event-graph = [
  162. "async-trait",
  163. "async-recursion",
  164. "blake3",
  165. "num-bigint",
  166. "rand",
  167. "sled",
  168. "sled-overlay",
  169. "smol",
  170. "tinyjson",
  171. "darkfi-serial",
  172. "darkfi-serial/collections",
  173. "darkfi-serial/hash",
  174. "net",
  175. "rpc",
  176. "system",
  177. "util",
  178. ]
  179. p2p-unix = []
  180. p2p-tcp = ["socket2"]
  181. p2p-tor = ["arti-client", "tor-hscrypto", "tor-error", "tor-rtcompat", "libsqlite3-sys"]
  182. p2p-nym = []
  183. net = [
  184. "async-trait",
  185. "ed25519-compact",
  186. "futures",
  187. "futures-rustls",
  188. "rand",
  189. "rcgen",
  190. "rustls-pemfile",
  191. "semver",
  192. "smol",
  193. "serde",
  194. "structopt",
  195. "structopt-toml",
  196. "url",
  197. "x509-parser",
  198. "darkfi-serial",
  199. "darkfi-serial/url",
  200. "async-serial",
  201. "system",
  202. "util",
  203. "p2p-tcp",
  204. "p2p-tor",
  205. #"p2p-nym",
  206. "p2p-unix",
  207. ]
  208. rpc = [
  209. "async-trait",
  210. "rand",
  211. "smol",
  212. "tinyjson",
  213. "url",
  214. "net",
  215. "system",
  216. "util",
  217. ]
  218. system = [
  219. "pin-project-lite",
  220. "rand",
  221. "smol",
  222. ]
  223. tx = [
  224. "blake3",
  225. "rand",
  226. "async-sdk",
  227. "async-serial",
  228. "zk",
  229. ]
  230. util = [
  231. "simplelog",
  232. "tinyjson",
  233. "darkfi-serial",
  234. ]
  235. wasm-runtime = [
  236. "wasmer",
  237. "wasmer-compiler-singlepass",
  238. "wasmer-middlewares",
  239. "darkfi-sdk",
  240. "darkfi-serial",
  241. "blockchain",
  242. "util",
  243. "zk",
  244. "zkas",
  245. ]
  246. zk = [
  247. "halo2_proofs",
  248. "halo2_gadgets",
  249. "rand",
  250. "async-serial",
  251. "async-sdk",
  252. "zkas",
  253. ]
  254. zkas = [
  255. "darkfi-serial",
  256. ]
  257. # -----END LIBRARY FEATURES-----
  258. [patch.crates-io]
  259. halo2_proofs = {git="https://github.com/parazyd/halo2", branch="v4"}
  260. halo2_gadgets = {git="https://github.com/parazyd/halo2", branch="v4"}
  261. # Temp rust nightly fix
  262. pathfinder_simd = {git="https://github.com/servo/pathfinder", branch="main"}