Cargo.toml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. [package]
  2. name = "darkfi"
  3. version = "0.3.0"
  4. homepage = "https://dark.fi"
  5. description = "Anonymous. Uncensored. Sovereign."
  6. authors = ["darkfi <dev@dark.fi>"]
  7. repository = "https://github.com/darkrenaissance/darkfi"
  8. license = "AGPL-3.0-only"
  9. edition = "2021"
  10. [lib]
  11. name = "darkfi"
  12. #[profile.release]
  13. #debug = true
  14. #lto = "fat"
  15. #codegen-units = 1
  16. [workspace]
  17. members = [
  18. "bin/zkas",
  19. #"bin/cashierd",
  20. "bin/darkfid",
  21. "bin/drk",
  22. "bin/faucetd",
  23. "bin/ircd",
  24. #"bin/irc-raft",
  25. "bin/dnetview",
  26. "bin/daod",
  27. "bin/dao-cli",
  28. "bin/tau/taud",
  29. "bin/tau/tau-cli",
  30. "bin/vanityaddr",
  31. "src/sdk",
  32. "src/util/derive",
  33. "src/util/derive-internal",
  34. ]
  35. [dependencies]
  36. # Hard dependencies
  37. libc = "0.2.126"
  38. log = "0.4.17"
  39. thiserror = "1.0.31"
  40. # async-runtime
  41. smol = {version = "1.2.5", optional = true}
  42. futures = {version = "0.3.21", optional = true}
  43. async-std = {version = "1.12.0", features = ["attributes"], optional = true}
  44. async-trait = {version = "0.1.56", optional = true}
  45. async-channel = {version = "1.6.1", optional = true}
  46. async-executor = {version = "1.4.1", optional = true}
  47. # async-net
  48. async-native-tls = {version = "0.4.0", optional = true}
  49. native-tls = {version = "0.2.10", optional = true}
  50. # Networking
  51. socket2 = {version = "0.4.4", optional = true}
  52. futures-rustls = {version = "0.22.1", features = ["dangerous_configuration"], optional = true}
  53. # TLS cert utilities
  54. ed25519-compact = {version = "1.0.11", features = ["pem"], optional = true}
  55. rcgen = {version = "0.9.2", features = ["pem"], optional = true}
  56. rustls-pemfile = {version = "1.0.0", optional = true}
  57. # Encoding
  58. hex = {version = "0.4.3", optional = true}
  59. bs58 = {version = "0.4.0", optional = true}
  60. toml = {version = "0.5.9", optional = true}
  61. bytes = {version = "1.1.0", optional = true}
  62. bincode = {version = "2.0.0-rc.1", features = ["serde"], optional = true}
  63. num-bigint = {version = "0.4.3", features = ["serde"], optional = true}
  64. serde_json = {version = "1.0.82", optional = true}
  65. serde = {version = "1.0.138", features = ["derive"], optional = true}
  66. structopt = {version= "0.3.26", optional = true}
  67. structopt-toml = {version= "0.5.0", optional = true}
  68. # Utilities
  69. url = {version = "2.2.2", features = ["serde"], optional = true}
  70. dirs = {version = "4.0.0", optional = true}
  71. subtle = {version = "2.4.1", optional = true}
  72. lazy_static = {version = "1.4.0", optional = true}
  73. lazy-init = {version = "0.5.0", optional = true}
  74. fxhash = {version = "0.2.1", optional = true}
  75. indexmap = {version = "1.9.1", optional = true}
  76. itertools = {version = "0.10.3", optional = true}
  77. darkfi-derive = {path = "src/util/derive", optional = true}
  78. darkfi-derive-internal = {path = "src/util/derive-internal", optional = true}
  79. chrono = {version = "0.4.19", optional = true}
  80. regex = {version = "1.5.6", optional = true}
  81. # Misc
  82. termion = {version = "1.5.6", optional = true}
  83. simplelog = {version = "0.12.0", optional = true}
  84. # Websockets
  85. tungstenite = {version = "0.17.2", optional = true}
  86. async-tungstenite = {version = "0.17.2", optional = true}
  87. # socks5
  88. fast-socks5 = {git = "https://github.com/ghassmo/fast-socks5", optional = true}
  89. # Crypto
  90. bitvec = {version = "1.0.0", optional = true}
  91. rand = {version = "0.8.5", optional = true}
  92. blake3 = {version = "1.3.1", optional = true}
  93. sha2 = {version = "0.10.2", optional = true}
  94. group = {version = "0.12.0", optional = true}
  95. arrayvec = {version = "0.7.2", optional = true}
  96. blake2b_simd = {version = "1.0.0", optional = true}
  97. pasta_curves = {version = "0.4.0", optional = true}
  98. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  99. incrementalmerkletree = {version = "0.3.0", optional = true}
  100. halo2_proofs = {version = "0.2.0", optional = true}
  101. halo2_gadgets = {version = "0.2.0", optional = true}
  102. #halo2_proofs = {git = "https://github.com/zcash/halo2.git", rev = "a898d65ae3ad3d41987666f6a03cfc15edae01c4", optional = true}
  103. #halo2_gadgets = {git = "https://github.com/zcash/halo2.git", rev = "a898d65ae3ad3d41987666f6a03cfc15edae01c4", optional = true}
  104. # Smart contract runtime
  105. drk-sdk = {path = "src/sdk", optional = true}
  106. wasmer = {version = "2.3.0", optional = true}
  107. wasmer-compiler-singlepass = {version = "2.3.0", optional = true}
  108. wasmer-middlewares = {version = "2.3.0", optional = true}
  109. # Wallet management
  110. sqlx = {version = "0.6.0", features = ["runtime-async-std-native-tls", "sqlite"], optional = true}
  111. libsqlite3-sys = {version = "0.24.2", features = ["bundled-sqlcipher"], optional = true }
  112. # Blockchain store
  113. sled = {version = "0.34.7", optional = true}
  114. [dev-dependencies]
  115. clap = {version = "3.2.8", features = ["derive"]}
  116. halo2_proofs = {version = "0.2.0", features = ["dev-graph", "gadget-traces", "sanity-checks"]}
  117. halo2_gadgets = {version = "0.2.0", features = ["dev-graph", "test-dependencies"]}
  118. #halo2_proofs = {git = "https://github.com/zcash/halo2.git", rev = "a898d65ae3ad3d41987666f6a03cfc15edae01c4", features = ["dev-graph", "gadget-traces", "sanity-checks"]}
  119. #halo2_gadgets = {git = "https://github.com/zcash/halo2.git", rev = "a898d65ae3ad3d41987666f6a03cfc15edae01c4", features = ["dev-graph", "test-dependencies"]}
  120. plotters = "0.3.1"
  121. [features]
  122. async-runtime = [
  123. "async-std",
  124. "async-channel",
  125. "async-executor",
  126. "async-trait",
  127. "futures",
  128. "smol",
  129. ]
  130. async-net = [
  131. "async-native-tls",
  132. "native-tls",
  133. ]
  134. websockets = [
  135. "async-tungstenite",
  136. "tungstenite",
  137. ]
  138. util = [
  139. "bs58",
  140. "hex",
  141. "bincode",
  142. "serde",
  143. "toml",
  144. "url",
  145. "simplelog",
  146. "serde_json",
  147. "dirs",
  148. "num-bigint",
  149. "fxhash",
  150. "chrono",
  151. "async-net",
  152. "async-runtime",
  153. "darkfi-derive",
  154. "darkfi-derive-internal",
  155. "rpc",
  156. ]
  157. rpc = [
  158. "rand",
  159. "url",
  160. "fast-socks5",
  161. "async-net",
  162. "async-runtime",
  163. "websockets",
  164. "net",
  165. ]
  166. blockchain = [
  167. "blake3",
  168. "chrono",
  169. "indexmap",
  170. "sled",
  171. "crypto",
  172. "tx",
  173. "net",
  174. "node",
  175. "util",
  176. ]
  177. system = [
  178. "fxhash",
  179. "rand",
  180. "async-runtime",
  181. ]
  182. net = [
  183. "fxhash",
  184. "socket2",
  185. "futures-rustls",
  186. "fast-socks5",
  187. "ed25519-compact",
  188. "rcgen",
  189. "regex",
  190. "rustls-pemfile",
  191. "structopt",
  192. "structopt-toml",
  193. "util",
  194. "system",
  195. ]
  196. crypto = [
  197. "bitvec",
  198. "blake3",
  199. "rand",
  200. "pasta_curves",
  201. "blake2b_simd",
  202. "incrementalmerkletree",
  203. "halo2_proofs",
  204. "halo2_gadgets",
  205. "subtle",
  206. "lazy_static",
  207. "group",
  208. "arrayvec",
  209. "crypto_api_chachapoly",
  210. "sha2",
  211. "bs58",
  212. "util",
  213. "zkas",
  214. ]
  215. wallet = [
  216. "sqlx",
  217. "libsqlite3-sys",
  218. "async-std",
  219. "crypto",
  220. "util",
  221. ]
  222. wasm-runtime = [
  223. "drk-sdk",
  224. "wasmer",
  225. "wasmer-compiler-singlepass",
  226. "wasmer-middlewares",
  227. ]
  228. node = [
  229. "url",
  230. "bytes",
  231. "lazy-init",
  232. "async-runtime",
  233. "blockchain",
  234. "crypto",
  235. "wallet",
  236. "util",
  237. "net",
  238. ]
  239. zkas = [
  240. "termion",
  241. "indexmap",
  242. "itertools",
  243. "util",
  244. ]
  245. raft = [
  246. "blake3",
  247. "sled",
  248. "util",
  249. "net",
  250. "rpc",
  251. ]
  252. tx = [
  253. "crypto",
  254. "util",
  255. ]
  256. [[example]]
  257. name = "net"
  258. path = "example/net.rs"
  259. required-features = ["async-runtime", "net"]
  260. [[example]]
  261. name = "tx"
  262. path = "example/tx.rs"
  263. required-features = ["node"]
  264. [[example]]
  265. name = "zk"
  266. path = "example/zk.rs"
  267. required-features = ["crypto"]
  268. #[[example]]
  269. #name = "lead"
  270. #path = "example/lead.rs"
  271. #required-features = ["node"]