Cargo.toml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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.137"
  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.5.1", optional = true}
  59. socket2 = {version = "0.4.7", optional = true}
  60. # TLS cert utilities
  61. ed25519-compact = {version = "2.0.2", 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.148", 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. # Utilities
  73. # TODO: check chrono usage and impl our own
  74. chrono = {version = "0.4.23", optional = true}
  75. darkfi-serial = {path = "src/serial", optional = true}
  76. darkfi-derive = {path = "src/serial/derive", optional = true}
  77. darkfi-derive-internal = {path = "src/serial/derive-internal", optional = true}
  78. fxhash = {version = "0.2.1", optional = true}
  79. indexmap = {version = "1.9.2", optional = true}
  80. itertools = {version = "0.10.5", optional = true}
  81. lazy-init = {version = "0.5.1", optional = true}
  82. lazy_static = {version = "1.4.0", optional = true}
  83. subtle = {version = "2.4.1", optional = true}
  84. # TODO: Test without serde
  85. url = {version = "2.3.1", features = ["serde"], optional = true}
  86. # Misc
  87. # TODO: Implement something simple and kill these deps
  88. indicatif = {version = "0.17.2", optional = true}
  89. simplelog = {version = "0.12.0", optional = true}
  90. termion = {version = "2.0.1", optional = true}
  91. # Websockets
  92. async-tungstenite = {version = "0.18.0", optional = true}
  93. # socks5
  94. fast-socks5 = {version = "0.4.3", optional = true}
  95. # Crypto
  96. rand = {version = "0.8.5", optional = true}
  97. blake2b_simd = {version = "1.0.0", optional = true}
  98. blake3 = {version = "1.3.3", optional = true}
  99. chacha20poly1305 = {version = "0.10.1", optional = true}
  100. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  101. halo2_proofs = {version = "0.2.0", optional = true}
  102. halo2_gadgets = {version = "0.2.0", optional = true}
  103. incrementalmerkletree = {version = "0.3.0", optional = true}
  104. num-bigint = {version = "0.4.3", optional = true}
  105. num-traits = {version = "0.2.15", optional = true}
  106. pasta_curves = {version = "0.4.1", optional = true}
  107. sha2 = {version = "0.10.6", optional = true}
  108. # Smart contract runtime
  109. darkfi-sdk = {path = "src/sdk", optional = true}
  110. wasmer = {version = "3.0.2", optional = true}
  111. wasmer-compiler-singlepass = {version = "3.0.2", optional = true}
  112. wasmer-middlewares = {version = "3.0.2", optional = true}
  113. # Wallet management
  114. libsqlite3-sys = {version = "0.24.2", features = ["bundled-sqlcipher"], optional = true }
  115. sqlx = {version = "0.6.2", features = ["runtime-async-std-native-tls", "sqlite"], optional = true}
  116. # Blockchain store
  117. sled = {version = "0.34.7", optional = true}
  118. # big float
  119. dashu = { version = "0.2.0", git = "https://github.com/ertosns/dashu", optional=true }
  120. rcell = { version = "1.1.3", optional=true }
  121. [dev-dependencies]
  122. clap = {version = "4.0.29", features = ["derive"]}
  123. halo2_proofs = {version = "0.2.0", features = ["dev-graph", "gadget-traces", "sanity-checks"]}
  124. halo2_gadgets = {version = "0.2.0", features = ["dev-graph", "test-dependencies"]}
  125. plotters = "0.3.4"
  126. env_logger = "0.10.0"
  127. easy-parallel = "3.2.0"
  128. # -----BEGIN LIBRARY FEATURES-----
  129. [features]
  130. async-runtime = [
  131. "async-std",
  132. "async-trait",
  133. "futures",
  134. "smol",
  135. ]
  136. blockchain = [
  137. "blake3",
  138. "chrono",
  139. "dashu",
  140. "halo2_gadgets",
  141. "halo2_proofs",
  142. "incrementalmerkletree",
  143. "lazy-init",
  144. "lazy_static",
  145. "pasta_curves",
  146. "rand",
  147. "sled",
  148. "sqlx",
  149. "url",
  150. "crypto_api_chachapoly",
  151. "async-runtime",
  152. "crypto",
  153. "darkfi-sdk",
  154. "darkfi-serial",
  155. "net",
  156. "tx",
  157. "util",
  158. "wallet",
  159. "wasm-runtime",
  160. "rcell"
  161. ]
  162. crypto = [
  163. "blake2b_simd",
  164. "blake3",
  165. "bs58",
  166. "chacha20poly1305",
  167. "fxhash",
  168. "halo2_gadgets",
  169. "halo2_proofs",
  170. "hex",
  171. "incrementalmerkletree",
  172. "lazy_static",
  173. "num-bigint",
  174. "num-traits",
  175. "pasta_curves",
  176. "rand",
  177. "serde",
  178. "serde_json",
  179. "sha2",
  180. "subtle",
  181. "darkfi-sdk",
  182. "darkfi-serial",
  183. "darkfi-serial/crypto",
  184. "util",
  185. "zkas",
  186. ]
  187. dht = [
  188. "blake3",
  189. "chrono",
  190. "rand",
  191. "async-runtime",
  192. "darkfi-serial",
  193. "darkfi-serial/collections",
  194. "darkfi-serial/hash",
  195. "net",
  196. ]
  197. net = [
  198. "fxhash",
  199. "ed25519-compact",
  200. "fast-socks5",
  201. "futures-rustls",
  202. "hex",
  203. "iprange",
  204. "ipnet",
  205. "structopt",
  206. "structopt-toml",
  207. "rand",
  208. "rcgen",
  209. "rustls-pemfile",
  210. "serde",
  211. "serde_json",
  212. "socket2",
  213. "url",
  214. "async-runtime",
  215. "darkfi-serial",
  216. "darkfi-serial/async",
  217. "darkfi-serial/url",
  218. "system",
  219. "util",
  220. ]
  221. raft = [
  222. "chrono",
  223. "fxhash",
  224. "rand",
  225. "sled",
  226. "async-runtime",
  227. "darkfi-serial",
  228. "net",
  229. "util",
  230. ]
  231. rpc = [
  232. "hex",
  233. "rand",
  234. "serde",
  235. "serde_json",
  236. "url",
  237. "async-runtime",
  238. "darkfi-serial",
  239. "net",
  240. ]
  241. system = [
  242. "fxhash",
  243. "rand",
  244. "async-runtime",
  245. ]
  246. tx = [
  247. "incrementalmerkletree",
  248. "rand",
  249. "darkfi-serial",
  250. "crypto",
  251. ]
  252. util = [
  253. "chrono",
  254. "indicatif",
  255. "rand",
  256. "simplelog",
  257. "serde",
  258. "serde_json",
  259. "termion",
  260. "toml",
  261. "url",
  262. "darkfi-serial",
  263. ]
  264. wallet = [
  265. "async-std",
  266. "bs58",
  267. "rand",
  268. "sqlx",
  269. "incrementalmerkletree",
  270. "libsqlite3-sys",
  271. "crypto",
  272. "darkfi-serial",
  273. "util",
  274. ]
  275. wasm-runtime = [
  276. "wasmer",
  277. "wasmer-compiler-singlepass",
  278. "wasmer-middlewares",
  279. "blockchain",
  280. "darkfi-sdk",
  281. ]
  282. websockets = [
  283. "async-tungstenite",
  284. ]
  285. zkas = [
  286. "termion",
  287. "indexmap",
  288. "itertools",
  289. "darkfi-serial",
  290. ]
  291. # -----END LIBRARY FEATURES-----
  292. [[example]]
  293. name = "net"
  294. path = "example/net.rs"
  295. required-features = ["async-runtime", "net"]