Cargo.toml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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/vm",
  22. ]
  23. [dependencies]
  24. # Hard dependencies
  25. log = "0.4.14"
  26. thiserror = "1.0.30"
  27. # async-runtime
  28. smol = {version = "1.2.5", optional = true}
  29. futures = {version = "0.3.19", optional = true}
  30. async-std = {version = "1.10.0", optional = true}
  31. async-trait = {version = "0.1.52", optional = true}
  32. async-channel = {version = "1.6.1", optional = true}
  33. async-executor = {version = "1.4.1", optional = true}
  34. # async-net
  35. async-native-tls = {version = "0.4.0", optional = true}
  36. native-tls = {version = "0.2.8", optional = true}
  37. # Encoding
  38. hex = {version = "0.4.3", optional = true}
  39. bs58 = {version = "0.4.0", optional = true}
  40. toml = {version = "0.5.8", optional = true}
  41. bytes = {version = "1.1.0", optional = true}
  42. bincode = {version = "1.3.3", optional = true}
  43. num-bigint = {version = "0.4.3", optional = true}
  44. serde_json = {version = "1.0.74", optional = true}
  45. serde = {version = "1.0.133", features = ["derive"], optional = true}
  46. # Utilities
  47. url = {version = "2.2.2", optional = true}
  48. dirs = {version = "4.0.0", optional = true}
  49. subtle = {version = "2.4.1", optional = true}
  50. lazy_static = {version = "1.4.0", optional = true}
  51. clap = {version = "3.0.7", features = ["derive"], 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. 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.2.1", optional = true}
  67. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  68. incrementalmerkletree = {version = "0.2.0", optional = true}
  69. halo2 = {version = "=0.1.0-beta.1", features = ["dev-graph", "gadget-traces", "sanity-checks"], optional = true}
  70. # Wallet management
  71. sqlx = {version = "0.5.10", features = ["runtime-async-std-native-tls", "sqlite"], optional = true}
  72. libsqlite3-sys = {version = "0.23.1", features = ["bundled-sqlcipher"], optional = true }
  73. # Node utilities
  74. signal-hook = {version = "0.3.13", optional = true}
  75. signal-hook-async-std = {version = "0.2.2", optional = true}
  76. # Node protocol
  77. [dependencies.zeromq]
  78. version = "0.3.3"
  79. default-features = false
  80. features = ["async-std-runtime", "all-transport"]
  81. optional = true
  82. [dependencies.rocksdb]
  83. # TODO: Revert to upstream after bd966750ec861d687913d59a9939a1408ac53131 is merged.
  84. git = "https://github.com/parazyd/rust-rocksdb"
  85. rev = "bd966750ec861d687913d59a9939a1408ac53131"
  86. default-features = false
  87. features = ["zstd"]
  88. optional = true
  89. [dependencies.halo2_gadgets]
  90. # TODO: Use upstream when published
  91. git = "https://github.com/parazyd/halo2_gadgets.git"
  92. rev = "b45c527276bb2309f3b256eb5f45ccdcc5bd8c0f"
  93. features = ["dev-graph", "test-dependencies"]
  94. optional = true
  95. [features]
  96. async-runtime = [
  97. "async-std",
  98. "async-channel",
  99. "async-executor",
  100. "async-trait",
  101. "futures",
  102. "smol",
  103. ]
  104. async-net = [
  105. "async-native-tls",
  106. "native-tls",
  107. ]
  108. websockets = [
  109. "async-tungstenite",
  110. "tungstenite",
  111. ]
  112. util = [
  113. "hex",
  114. "bincode",
  115. "serde",
  116. "serde_json",
  117. "dirs",
  118. "num-bigint",
  119. ]
  120. rpc = [
  121. "rand",
  122. "url",
  123. "async-net",
  124. "async-runtime",
  125. "websockets",
  126. "util",
  127. ]
  128. blockchain = [
  129. "rocksdb",
  130. "async-runtime",
  131. "util",
  132. ]
  133. tui = [
  134. "async-std",
  135. "termion",
  136. ]
  137. system = [
  138. "rand",
  139. "async-runtime",
  140. ]
  141. cli = [
  142. "simplelog",
  143. "toml",
  144. "clap",
  145. "util",
  146. ]
  147. net = [
  148. "util",
  149. "system",
  150. ]
  151. crypto = [
  152. "rand",
  153. "pasta_curves",
  154. "blake2b_simd",
  155. "incrementalmerkletree",
  156. "halo2",
  157. "halo2_gadgets",
  158. "subtle",
  159. "lazy_static",
  160. "group",
  161. "arrayvec",
  162. "crypto_api_chachapoly",
  163. "sha2",
  164. "bs58",
  165. "util",
  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 = "vm"
  200. path = "example/vm.rs"
  201. required-features = ["crypto"]
  202. [[example]]
  203. name = "vm_burn"
  204. path = "example/vm_burn.rs"
  205. required-features = ["crypto"]
  206. [[example]]
  207. name = "tx"
  208. path = "example/tx.rs"
  209. required-features = ["node"]
  210. [[example]]
  211. name = "tree"
  212. path = "example/tree.rs"
  213. required-features = ["crypto"]
  214. [[example]]
  215. name = "vm2"
  216. path = "example/vm2.rs"
  217. required-features = ["crypto"]