Cargo.toml 6.6 KB

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