Cargo.toml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. [package]
  2. name = "darkfi"
  3. version = "0.3.0"
  4. homepage = "https://dark.fi"
  5. description = "Anonymous. Uncensored. Sovereign."
  6. authors = ["Dyne.org foundation <foundation@dyne.org>"]
  7. repository = "https://github.com/darkrenaissance/darkfi"
  8. license = "AGPL-3.0-only"
  9. edition = "2021"
  10. [lib]
  11. name = "darkfi"
  12. doctest = false
  13. #[profile.release]
  14. #debug = true
  15. #lto = "fat"
  16. #codegen-units = 1
  17. [workspace]
  18. members = [
  19. "bin/zkas",
  20. #"bin/cashierd",
  21. "bin/darkfid",
  22. "bin/drk",
  23. "bin/faucetd",
  24. "bin/fud/fu",
  25. "bin/fud/fud",
  26. "bin/ircd",
  27. "bin/ircd2",
  28. "bin/dnetview",
  29. #"bin/dao/daod",
  30. #"bin/dao/dao-cli",
  31. "bin/tau/taud",
  32. "bin/tau/tau-cli",
  33. "bin/darkwiki/darkwikid",
  34. "bin/darkwiki/darkwiki-cli",
  35. "bin/vanityaddr",
  36. "bin/lilith",
  37. "src/sdk",
  38. "src/serial",
  39. "src/serial/derive",
  40. "src/serial/derive-internal",
  41. "src/contract/money",
  42. "src/contract/dao",
  43. "example/dchat",
  44. ]
  45. [dependencies]
  46. # Hard dependencies
  47. libc = "0.2.138"
  48. log = "0.4.17"
  49. thiserror = "1.0.37"
  50. # async-runtime
  51. async-std = {version = "1.12.0", features = ["attributes"], optional = true}
  52. async-trait = {version = "0.1.59", optional = true}
  53. futures = {version = "0.3.25", optional = true}
  54. smol = {version = "1.3.0", optional = true}
  55. # Networking
  56. futures-rustls = {version = "0.22.2", features = ["dangerous_configuration"], optional = true}
  57. iprange = {version = "0.6.7", optional = true}
  58. ipnet = {version = "2.7.0", optional = true}
  59. socket2 = {version = "0.4.7", optional = true}
  60. # TLS cert utilities
  61. ed25519-compact = {version = "2.0.4", features = ["pem"], optional = true}
  62. rcgen = {version = "0.10.0", features = ["pem"], optional = true}
  63. rustls-pemfile = {version = "1.0.1", optional = true}
  64. # Encoding
  65. bs58 = {version = "0.4.0", optional = true}
  66. hex = {version = "0.4.3", optional = true}
  67. serde_json = {version = "1.0.89", optional = true}
  68. serde = {version = "1.0.150", features = ["derive"], optional = true}
  69. structopt = {version= "0.3.26", optional = true}
  70. structopt-toml = {version= "0.5.1", optional = true}
  71. toml = {version = "0.5.9", optional = true}
  72. # big float
  73. dashu = { version = "0.2.0", git = "https://github.com/ertosns/dashu", optional=true }
  74. # Utilities
  75. # TODO: check chrono usage and impl our own
  76. chrono = {version = "0.4.23", optional = true}
  77. darkfi-serial = {path = "src/serial", optional = true}
  78. darkfi-derive = {path = "src/serial/derive", optional = true}
  79. darkfi-derive-internal = {path = "src/serial/derive-internal", optional = true}
  80. indexmap = {version = "1.9.2", optional = true}
  81. itertools = {version = "0.10.5", optional = true}
  82. lazy_static = {version = "1.4.0", optional = true}
  83. # TODO: Test without serde
  84. url = {version = "2.3.1", features = ["serde"], optional = true}
  85. # Misc
  86. # TODO: Implement something simple and kill these deps
  87. indicatif = {version = "0.17.2", optional = true}
  88. simplelog = {version = "0.12.0", optional = true}
  89. # Websockets
  90. async-tungstenite = {version = "0.19.0", optional = true}
  91. # socks5
  92. fast-socks5 = {version = "0.4.3", optional = true}
  93. # Crypto
  94. rand = {version = "0.8.5", optional = true}
  95. blake3 = {version = "1.3.3", optional = true}
  96. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  97. halo2_proofs = {version = "0.2.0", optional = true}
  98. halo2_gadgets = {version = "0.2.0", optional = true}
  99. # Smart contract runtime
  100. darkfi-sdk = {path = "src/sdk", optional = true}
  101. wasmer = {version = "3.1.0", optional = true}
  102. wasmer-compiler-singlepass = {version = "3.1.0", optional = true}
  103. wasmer-middlewares = {version = "3.1.0", optional = true}
  104. # Wallet management
  105. libsqlite3-sys = {version = "0.24.2", features = ["bundled-sqlcipher"], optional = true }
  106. sqlx = {version = "0.6.2", features = ["runtime-async-std-native-tls", "sqlite"], optional = true}
  107. # Blockchain store
  108. sled = {version = "0.34.7", optional = true}
  109. [dev-dependencies]
  110. clap = {version = "4.0.29", features = ["derive"]}
  111. halo2_proofs = {version = "0.2.0", features = ["dev-graph", "gadget-traces", "sanity-checks"]}
  112. halo2_gadgets = {version = "0.2.0", features = ["dev-graph", "test-dependencies"]}
  113. plotters = "0.3.4"
  114. easy-parallel = "3.2.0"
  115. # -----BEGIN LIBRARY FEATURES-----
  116. [features]
  117. async-runtime = [
  118. "async-std",
  119. "async-trait",
  120. "futures",
  121. "smol",
  122. ]
  123. blockchain = [
  124. "blake3",
  125. "bs58", # <-- remove after we get rid of json for notifications
  126. "chrono",
  127. "dashu",
  128. "halo2_proofs",
  129. "lazy_static",
  130. "rand",
  131. "sled",
  132. "sqlx",
  133. "url",
  134. "crypto_api_chachapoly",
  135. "async-runtime",
  136. "darkfi-sdk",
  137. "darkfi-serial/crypto",
  138. "net",
  139. "rpc",
  140. "tx",
  141. "util",
  142. "wallet",
  143. "wasm-runtime",
  144. ]
  145. dht = [
  146. "blake3",
  147. "chrono",
  148. "rand",
  149. "async-runtime",
  150. "darkfi-serial",
  151. "darkfi-serial/collections",
  152. "darkfi-serial/hash",
  153. "net",
  154. ]
  155. net = [
  156. "ed25519-compact",
  157. "fast-socks5",
  158. "futures-rustls",
  159. "hex",
  160. "iprange",
  161. "ipnet",
  162. "structopt",
  163. "structopt-toml",
  164. "rand",
  165. "rcgen",
  166. "rustls-pemfile",
  167. "serde",
  168. "serde_json",
  169. "socket2",
  170. "url",
  171. "async-runtime",
  172. "darkfi-serial",
  173. "darkfi-serial/async",
  174. "darkfi-serial/url",
  175. "system",
  176. "util",
  177. ]
  178. raft = [
  179. "chrono",
  180. "rand",
  181. "sled",
  182. "async-runtime",
  183. "darkfi-serial",
  184. "net",
  185. "util",
  186. ]
  187. rpc = [
  188. "hex",
  189. "rand",
  190. "serde",
  191. "serde_json",
  192. "url",
  193. "async-runtime",
  194. "darkfi-serial",
  195. "net",
  196. ]
  197. system = [
  198. "rand",
  199. "async-runtime",
  200. ]
  201. tx = [
  202. "blake3",
  203. "rand",
  204. "async-runtime",
  205. "darkfi-sdk",
  206. "darkfi-serial",
  207. "zk",
  208. ]
  209. util = [
  210. "chrono",
  211. "simplelog",
  212. "serde",
  213. "serde_json",
  214. "toml",
  215. "url",
  216. "darkfi-serial",
  217. ]
  218. wallet = [
  219. "async-std",
  220. "rand",
  221. "sqlx",
  222. "libsqlite3-sys",
  223. "darkfi-serial",
  224. "util",
  225. ]
  226. wasm-runtime = [
  227. "wasmer",
  228. "wasmer-compiler-singlepass",
  229. "wasmer-middlewares",
  230. "blockchain",
  231. "darkfi-sdk",
  232. ]
  233. websockets = [
  234. "async-tungstenite",
  235. ]
  236. zk = [
  237. "halo2_proofs",
  238. "halo2_gadgets",
  239. "rand",
  240. "darkfi-sdk",
  241. "zkas",
  242. ]
  243. zkas = [
  244. "indexmap",
  245. "itertools",
  246. "darkfi-serial",
  247. ]
  248. # -----END LIBRARY FEATURES-----
  249. [[example]]
  250. name = "net"
  251. path = "example/net.rs"
  252. required-features = ["async-runtime", "net"]