Cargo.toml 5.0 KB

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