Cargo.toml 4.8 KB

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