Cargo.toml 6.8 KB

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