Cargo.toml 7.2 KB

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