Cargo.toml 4.6 KB

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