Cargo.toml 5.0 KB

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