Cargo.toml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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. rand = {version = "0.8.4", optional = true}
  61. sha2 = {version = "0.10.1", optional = true}
  62. group = {version = "0.11.0", optional = true}
  63. arrayvec = {version = "0.7.2", optional = true}
  64. blake2b_simd = {version = "1.0.0", optional = true}
  65. pasta_curves = {version = "0.2.1", optional = true}
  66. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  67. incrementalmerkletree = {version = "0.2.0", optional = true}
  68. halo2 = {version = "=0.1.0-beta.1", features = ["dev-graph", "gadget-traces", "sanity-checks"], optional = true}
  69. # Wallet management
  70. sqlx = {version = "0.5.10", features = ["runtime-async-std-native-tls", "sqlite"], optional = true}
  71. libsqlite3-sys = {version = "0.23.1", features = ["bundled-sqlcipher"], optional = true }
  72. # Node utilities
  73. signal-hook = {version = "0.3.13", optional = true}
  74. signal-hook-async-std = {version = "0.2.2", optional = true}
  75. # Node protocol
  76. [dependencies.zeromq]
  77. version = "0.3.3"
  78. default-features = false
  79. features = ["async-std-runtime", "all-transport"]
  80. optional = true
  81. [dependencies.rocksdb]
  82. # TODO: Revert to upstream after bd966750ec861d687913d59a9939a1408ac53131 is merged.
  83. git = "https://github.com/parazyd/rust-rocksdb"
  84. rev = "bd966750ec861d687913d59a9939a1408ac53131"
  85. default-features = false
  86. features = ["zstd"]
  87. optional = true
  88. [dependencies.halo2_gadgets]
  89. # TODO: Use upstream when published
  90. git = "https://github.com/parazyd/halo2_gadgets.git"
  91. rev = "b45c527276bb2309f3b256eb5f45ccdcc5bd8c0f"
  92. features = ["dev-graph", "test-dependencies"]
  93. optional = true
  94. [features]
  95. async-runtime = [
  96. "async-std",
  97. "async-channel",
  98. "async-executor",
  99. "async-trait",
  100. "futures",
  101. "smol",
  102. ]
  103. async-net = [
  104. "async-native-tls",
  105. "native-tls",
  106. ]
  107. websockets = [
  108. "async-tungstenite",
  109. "tungstenite",
  110. ]
  111. util = [
  112. "hex",
  113. "bincode",
  114. "serde",
  115. "serde_json",
  116. "dirs",
  117. "num-bigint",
  118. ]
  119. rpc = [
  120. "rand",
  121. "url",
  122. "async-net",
  123. "async-runtime",
  124. "websockets",
  125. "util",
  126. ]
  127. blockchain = [
  128. "rocksdb",
  129. "async-runtime",
  130. "util",
  131. ]
  132. tui = [
  133. "async-std",
  134. "termion",
  135. ]
  136. system = [
  137. "rand",
  138. "async-runtime",
  139. ]
  140. cli = [
  141. "simplelog",
  142. "toml",
  143. "clap",
  144. "util",
  145. ]
  146. net = [
  147. "util",
  148. "system",
  149. ]
  150. crypto = [
  151. "rand",
  152. "pasta_curves",
  153. "blake2b_simd",
  154. "incrementalmerkletree",
  155. "halo2",
  156. "halo2_gadgets",
  157. "subtle",
  158. "lazy_static",
  159. "group",
  160. "arrayvec",
  161. "crypto_api_chachapoly",
  162. "sha2",
  163. "bs58",
  164. "util",
  165. "zkas",
  166. ]
  167. wallet = [
  168. "sqlx",
  169. "libsqlite3-sys"
  170. ]
  171. node = [
  172. "url",
  173. "bytes",
  174. "zeromq",
  175. "signal-hook",
  176. "signal-hook-async-std",
  177. "async-runtime",
  178. "blockchain",
  179. "crypto",
  180. "wallet",
  181. "util",
  182. "net",
  183. ]
  184. zkas = [
  185. "termion",
  186. "indexmap",
  187. "itertools",
  188. "util",
  189. ]
  190. [[example]]
  191. name = "net"
  192. path = "example/net.rs"
  193. required-features = ["async-runtime", "cli", "net"]
  194. [[example]]
  195. name = "tui"
  196. path = "example/tui_ex.rs"
  197. required-features = ["async-runtime", "tui"]
  198. [[example]]
  199. name = "tx"
  200. path = "example/tx.rs"
  201. required-features = ["node"]
  202. [[example]]
  203. name = "tree"
  204. path = "example/tree.rs"
  205. required-features = ["crypto"]
  206. [[example]]
  207. name = "mint"
  208. path = "proof/mint.rs"
  209. required-features = ["cli", "crypto", "zkas"]
  210. [[example]]
  211. name = "burn"
  212. path = "proof/burn.rs"
  213. required-features = ["cli", "crypto", "zkas"]