Cargo.toml 6.7 KB

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