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