Cargo.toml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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. [workspace]
  13. members = [
  14. "bin/zkas",
  15. "bin/cashierd",
  16. "bin/darkfid",
  17. "bin/drk",
  18. "bin/gatewayd",
  19. "bin/ircd",
  20. "bin/map",
  21. ]
  22. [dependencies]
  23. # Hard dependencies
  24. log = "0.4.14"
  25. thiserror = "1.0.30"
  26. # async-runtime
  27. smol = {version = "1.2.5", optional = true}
  28. futures = {version = "0.3.19", optional = true}
  29. async-std = {version = "1.10.0", optional = true}
  30. async-trait = {version = "0.1.52", optional = true}
  31. async-channel = {version = "1.6.1", optional = true}
  32. async-executor = {version = "1.4.1", optional = true}
  33. # async-net
  34. async-native-tls = {version = "0.4.0", optional = true}
  35. native-tls = {version = "0.2.8", optional = true}
  36. # Encoding
  37. hex = {version = "0.4.3", optional = true}
  38. bs58 = {version = "0.4.0", optional = true}
  39. toml = {version = "0.5.8", optional = true}
  40. bytes = {version = "1.1.0", optional = true}
  41. bincode = {version = "1.3.3", optional = true}
  42. num-bigint = {version = "0.4.3", optional = true}
  43. serde_json = {version = "1.0.74", optional = true}
  44. serde = {version = "1.0.133", features = ["derive"], optional = true}
  45. # Utilities
  46. url = {version = "2.2.2", optional = true}
  47. dirs = {version = "4.0.0", optional = true}
  48. subtle = {version = "2.4.1", optional = true}
  49. lazy_static = {version = "1.4.0", optional = true}
  50. clap = {version = "3.0.7", features = ["derive"], optional = true}
  51. indexmap = {version = "1.7.0", optional = true}
  52. itertools = {version = "0.10.3", optional = true}
  53. # Misc
  54. termion = {version = "1.5.6", optional = true}
  55. simplelog = {version = "0.11.2", optional = true}
  56. # Websockets
  57. tungstenite = {version = "0.16.0", optional = true}
  58. async-tungstenite = {version = "0.16.1", optional = true}
  59. # Crypto
  60. bitvec = {version = "1.0.0", optional = true}
  61. rand = {version = "0.8.4", optional = true}
  62. sha2 = {version = "0.10.1", optional = true}
  63. group = {version = "0.11.0", optional = true}
  64. arrayvec = {version = "0.7.2", optional = true}
  65. blake2b_simd = {version = "1.0.0", optional = true}
  66. pasta_curves = {version = "0.3.0", optional = true}
  67. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  68. incrementalmerkletree = {version = "0.2.0", optional = true}
  69. halo2_proofs = {git = "https://github.com/zcash/halo2", branch = "main", features = ["dev-graph", "gadget-traces", "sanity-checks"], optional = true}
  70. halo2_gadgets = {git = "https://github.com/zcash/halo2", branch = "main", features = ["dev-graph", "test-dependencies"], optional = true}
  71. # Wallet management
  72. sqlx = {version = "0.5.10", features = ["runtime-async-std-native-tls", "sqlite"], optional = true}
  73. libsqlite3-sys = {version = "0.23.1", features = ["bundled-sqlcipher"], optional = true }
  74. # Node utilities
  75. signal-hook = {version = "0.3.13", optional = true}
  76. signal-hook-async-std = {version = "0.2.2", optional = true}
  77. # Node protocol
  78. [dependencies.zeromq]
  79. version = "0.3.3"
  80. default-features = false
  81. features = ["async-std-runtime", "all-transport"]
  82. optional = true
  83. [dependencies.rocksdb]
  84. # TODO: Revert to upstream after bd966750ec861d687913d59a9939a1408ac53131 is merged.
  85. git = "https://github.com/parazyd/rust-rocksdb"
  86. rev = "bd966750ec861d687913d59a9939a1408ac53131"
  87. default-features = false
  88. features = ["zstd"]
  89. optional = true
  90. [features]
  91. async-runtime = [
  92. "async-std",
  93. "async-channel",
  94. "async-executor",
  95. "async-trait",
  96. "futures",
  97. "smol",
  98. ]
  99. async-net = [
  100. "async-native-tls",
  101. "native-tls",
  102. ]
  103. websockets = [
  104. "async-tungstenite",
  105. "tungstenite",
  106. ]
  107. util = [
  108. "hex",
  109. "bincode",
  110. "serde",
  111. "serde_json",
  112. "dirs",
  113. "num-bigint",
  114. ]
  115. rpc = [
  116. "rand",
  117. "url",
  118. "async-net",
  119. "async-runtime",
  120. "websockets",
  121. "util",
  122. ]
  123. blockchain = [
  124. "rocksdb",
  125. "async-runtime",
  126. "util",
  127. ]
  128. tui = [
  129. "async-std",
  130. "termion",
  131. ]
  132. system = [
  133. "rand",
  134. "async-runtime",
  135. ]
  136. cli = [
  137. "simplelog",
  138. "toml",
  139. "clap",
  140. "util",
  141. ]
  142. net = [
  143. "util",
  144. "system",
  145. ]
  146. crypto = [
  147. "bitvec",
  148. "rand",
  149. "pasta_curves",
  150. "blake2b_simd",
  151. "incrementalmerkletree",
  152. "halo2_proofs",
  153. "halo2_gadgets",
  154. "subtle",
  155. "lazy_static",
  156. "group",
  157. "arrayvec",
  158. "crypto_api_chachapoly",
  159. "sha2",
  160. "bs58",
  161. "util",
  162. "zkas",
  163. ]
  164. wallet = [
  165. "sqlx",
  166. "libsqlite3-sys"
  167. ]
  168. node = [
  169. "url",
  170. "bytes",
  171. "zeromq",
  172. "signal-hook",
  173. "signal-hook-async-std",
  174. "async-runtime",
  175. "blockchain",
  176. "crypto",
  177. "wallet",
  178. "util",
  179. "net",
  180. ]
  181. zkas = [
  182. "termion",
  183. "indexmap",
  184. "itertools",
  185. "util",
  186. ]
  187. [[example]]
  188. name = "net"
  189. path = "example/net.rs"
  190. required-features = ["async-runtime", "cli", "net"]
  191. [[example]]
  192. name = "tui"
  193. path = "example/tui_ex.rs"
  194. required-features = ["async-runtime", "tui"]
  195. [[example]]
  196. name = "tx"
  197. path = "example/tx.rs"
  198. required-features = ["node"]
  199. [[example]]
  200. name = "tree"
  201. path = "example/tree.rs"
  202. required-features = ["crypto"]
  203. [[example]]
  204. name = "mint"
  205. path = "proof/mint.rs"
  206. required-features = ["cli", "crypto", "zkas"]
  207. [[example]]
  208. name = "burn"
  209. path = "proof/burn.rs"
  210. required-features = ["cli", "crypto", "zkas"]
  211. [[example]]
  212. name = "dao"
  213. path = "proof/dao.rs"
  214. required-features = ["cli", "crypto", "zkas"]