Cargo.toml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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/drk",
  23. "bin/faucetd",
  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/consensus",
  42. "src/contract/deployooor",
  43. #"example/dchat",
  44. ]
  45. [dependencies]
  46. # Hard dependencies
  47. libc = "0.2.147"
  48. log = "0.4.20"
  49. thiserror = "1.0.47"
  50. # async-runtime
  51. async-trait = {version = "0.1.73", optional = true}
  52. futures = {version = "0.3.28", optional = true}
  53. smol = {version = "1.3.0", optional = true}
  54. pin-project-lite = {version = "0.2.12", optional = true}
  55. # Networking
  56. async-rustls = {version = "0.4.0", features = ["dangerous_configuration"], optional = true}
  57. # Pluggable Transports
  58. arti-client = {version = "0.10.0", default-features = false, features = ["async-std", "rustls", "onion-service-client"], optional = true}
  59. tor-hscrypto = {version = "0.3.1", optional = true}
  60. # TLS cert utilities
  61. ed25519-compact = {version = "2.0.4", optional = true}
  62. rcgen = {version = "0.11.1", optional = true}
  63. rustls-pemfile = {version = "1.0.3", optional = true}
  64. x509-parser = {version = "0.15.1", features = ["validate", "verify"], optional = true}
  65. # Encoding
  66. bs58 = {version = "0.5.0", optional = true}
  67. serde = {version = "1.0.185", features = ["derive"], optional = true}
  68. tinyjson = {version = "2.5.1", optional = true}
  69. semver = {version = "1.0.18", optional = true}
  70. structopt = {version= "0.3.26", optional = true}
  71. structopt-toml = {version= "0.5.1", optional = true}
  72. toml = {version = "0.7.6", optional = true}
  73. # Big float high precision arithmetics
  74. dashu = {version = "0.3.1", optional = true}
  75. # Utilities
  76. # TODO: check chrono usage and impl our own
  77. chrono = {version = "0.4.26", optional = true}
  78. darkfi-serial = {path = "src/serial", optional = true}
  79. darkfi-derive = {path = "src/serial/derive", optional = true}
  80. lazy_static = {version = "1.4.0", optional = true}
  81. url = {version = "2.4.0", features = ["serde"], optional = true}
  82. # Misc
  83. # TODO: Implement something simple and kill these deps
  84. simplelog = {version = "0.12.1", optional = true}
  85. # Crypto
  86. rand = {version = "0.8.5", optional = true}
  87. blake3 = {version = "1.4.1", features = ["rayon"], optional = true}
  88. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  89. halo2_proofs = {version = "0.3.0", features = ["circuit-params"], optional = true}
  90. halo2_gadgets = {version = "0.3.0", features = ["circuit-params"], optional = true}
  91. # Smart contract runtime
  92. darkfi-sdk = {path = "src/sdk", optional = true}
  93. wasmer = {version = "4.1.2", optional = true}
  94. wasmer-compiler-singlepass = {version = "4.1.2", optional = true}
  95. wasmer-middlewares = {version = "4.1.2", optional = true}
  96. # Wallet management
  97. rusqlite = {version = "0.29.0", features = ["bundled-sqlcipher-vendored-openssl"], optional = true}
  98. libsqlite3-sys = {version = "0.26.0", features = ["bundled-sqlcipher-vendored-openssl"], optional = true}
  99. # Blockchain store
  100. sled = {version = "0.34.7", optional = true}
  101. sled-overlay = {version = "0.0.8", optional = true}
  102. [dev-dependencies]
  103. clap = {version = "4.3.24", features = ["derive"]}
  104. halo2_proofs = {version = "0.3.0", features = ["dev-graph", "gadget-traces", "sanity-checks"]}
  105. halo2_gadgets = {version = "0.3.0", features = ["test-dev-graph", "test-dependencies"]}
  106. plotters = "0.3.5"
  107. easy-parallel = "3.3.0"
  108. prettytable-rs = "0.10.0"
  109. # -----BEGIN LIBRARY FEATURES-----
  110. [features]
  111. p2p-transport-unix = []
  112. p2p-transport-tcp = []
  113. p2p-transport-tor = ["arti-client", "tor-hscrypto"]
  114. p2p-transport-nym = []
  115. async-runtime = [
  116. "async-trait",
  117. "futures",
  118. "smol",
  119. ]
  120. blockchain = [
  121. "async-trait",
  122. "blake3",
  123. "crypto_api_chachapoly",
  124. "dashu",
  125. #"halo2_proofs",
  126. "lazy_static",
  127. #"rand",
  128. "sled",
  129. "sled-overlay",
  130. "smol",
  131. #"url",
  132. #"async-runtime",
  133. "darkfi-sdk/async",
  134. "darkfi-serial/crypto",
  135. "net",
  136. "rpc",
  137. "tx",
  138. #"util",
  139. "wallet",
  140. "wasm-runtime",
  141. ]
  142. geode = [
  143. "blake3",
  144. "async-runtime",
  145. ]
  146. event-graph = [
  147. "blake3",
  148. "rand",
  149. "tinyjson",
  150. "async-runtime",
  151. "darkfi-serial/async",
  152. "darkfi-serial/collections",
  153. "darkfi-serial/hash",
  154. "net",
  155. ]
  156. net = [
  157. "async-rustls",
  158. "async-trait",
  159. "ed25519-compact",
  160. "futures",
  161. "rand",
  162. "rcgen",
  163. "rustls-pemfile",
  164. "semver",
  165. "smol",
  166. "structopt",
  167. "structopt-toml",
  168. "url",
  169. "x509-parser",
  170. "darkfi-serial",
  171. "darkfi-serial/async",
  172. "darkfi-serial/url",
  173. "system",
  174. "util",
  175. "p2p-transport-tcp",
  176. "p2p-transport-tor",
  177. "p2p-transport-nym",
  178. "p2p-transport-unix",
  179. ]
  180. rpc = [
  181. "rand",
  182. "tinyjson",
  183. "url",
  184. "async-runtime",
  185. "net",
  186. ]
  187. system = [
  188. "pin-project-lite",
  189. "rand",
  190. "smol",
  191. ]
  192. tx = [
  193. "blake3",
  194. "rand",
  195. "darkfi-sdk/async",
  196. "darkfi-serial",
  197. "zk",
  198. ]
  199. util = [
  200. "rand",
  201. "serde",
  202. "simplelog",
  203. "tinyjson",
  204. "toml",
  205. "darkfi-serial/async",
  206. ]
  207. wallet = [
  208. "rusqlite",
  209. "smol",
  210. "darkfi-serial",
  211. "util",
  212. ]
  213. wasm-runtime = [
  214. "wasmer",
  215. "wasmer-compiler-singlepass",
  216. "wasmer-middlewares",
  217. "blockchain",
  218. "darkfi-sdk/async",
  219. "darkfi-serial",
  220. "util",
  221. "zk",
  222. "zkas",
  223. ]
  224. zk = [
  225. "halo2_proofs",
  226. "halo2_gadgets",
  227. "rand",
  228. "darkfi-sdk/async",
  229. "darkfi-serial/async",
  230. "zkas",
  231. ]
  232. zkas = [
  233. "darkfi-serial",
  234. ]
  235. # -----END LIBRARY FEATURES-----
  236. [[example]]
  237. name = "net"
  238. path = "example/net.rs"
  239. required-features = ["async-runtime", "net"]
  240. [[example]]
  241. name = "zk"
  242. path = "example/zk.rs"
  243. required-features = ["zk"]
  244. [[example]]
  245. name = "zk-inclusion-proof"
  246. path = "example/zk-inclusion-proof.rs"
  247. required-features = ["zk"]
  248. [patch.crates-io]
  249. halo2_proofs = {git="https://github.com/parazyd/halo2", branch="v4"}
  250. halo2_gadgets = {git="https://github.com/parazyd/halo2", branch="v4"}
  251. arti-client = {git="https://gitlab.torproject.org/tpo/core/arti", rev="3fdadcc7509f60cfdfc51df2664aaf2f73bbd2f0"}
  252. tor-hscrypto = {git="https://gitlab.torproject.org/tpo/core/arti", rev="3fdadcc7509f60cfdfc51df2664aaf2f73bbd2f0"}