Cargo.toml 6.8 KB

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