Cargo.toml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. [package]
  2. name = "darkfi"
  3. version = "0.3.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. #[profile.release]
  13. #debug = true
  14. #lto = "fat"
  15. #codegen-units = 1
  16. [workspace]
  17. members = [
  18. "bin/zkas",
  19. #"bin/cashierd",
  20. "bin/darkfid",
  21. "bin/darkotc",
  22. "bin/drk",
  23. "bin/faucetd",
  24. "bin/ircd",
  25. #"bin/irc-raft",
  26. "bin/dnetview",
  27. "bin/daod",
  28. "bin/dao-cli",
  29. "bin/tau/taud",
  30. "bin/tau/tau-cli",
  31. "bin/darkwiki/darkwikid",
  32. "bin/darkwiki/darkwiki-cli",
  33. "bin/vanityaddr",
  34. "bin/lilith",
  35. "src/sdk",
  36. "src/serial/derive",
  37. "src/serial/derive-internal",
  38. "example/dchat",
  39. ]
  40. [dependencies]
  41. # Hard dependencies
  42. libc = "0.2.133"
  43. log = "0.4.17"
  44. thiserror = "1.0.35"
  45. # async-runtime
  46. async-channel = {version = "1.7.1", optional = true}
  47. async-executor = {version = "1.4.1", optional = true}
  48. async-std = {version = "1.12.0", features = ["attributes"], optional = true}
  49. async-trait = {version = "0.1.57", optional = true}
  50. futures = {version = "0.3.24", optional = true}
  51. smol = {version = "1.2.5", optional = true}
  52. # Networking
  53. futures-rustls = {version = "0.22.2", features = ["dangerous_configuration"], optional = true}
  54. socket2 = {version = "0.4.7", optional = true}
  55. # TLS cert utilities
  56. ed25519-compact = {version = "1.0.15", features = ["pem"], optional = true}
  57. rcgen = {version = "0.9.3", features = ["pem"], optional = true}
  58. rustls-pemfile = {version = "1.0.1", optional = true}
  59. # Encoding
  60. bincode = {version = "2.0.0-rc.1", features = ["serde"], optional = true}
  61. bs58 = {version = "0.4.0", optional = true}
  62. hex = {version = "0.4.3", optional = true}
  63. serde_json = {version = "1.0.85", optional = true}
  64. serde = {version = "1.0.145", features = ["derive"], optional = true}
  65. structopt = {version= "0.3.26", optional = true}
  66. structopt-toml = {version= "0.5.1", optional = true}
  67. toml = {version = "0.5.9", optional = true}
  68. # Utilities
  69. chrono = {version = "0.4.22", optional = true}
  70. darkfi-derive = {path = "src/serial/derive", optional = true}
  71. darkfi-derive-internal = {path = "src/serial/derive-internal", optional = true}
  72. dirs = {version = "4.0.0", optional = true}
  73. fxhash = {version = "0.2.1", optional = true}
  74. indexmap = {version = "1.9.1", optional = true}
  75. itertools = {version = "0.10.5", optional = true}
  76. lazy-init = {version = "0.5.1", optional = true}
  77. lazy_static = {version = "1.4.0", optional = true}
  78. subtle = {version = "2.4.1", optional = true}
  79. url = {version = "2.3.1", features = ["serde"], optional = true}
  80. # Misc
  81. indicatif = {version = "0.17.1", optional = true}
  82. simplelog = {version = "0.12.0", optional = true}
  83. termion = {version = "1.5.6", optional = true}
  84. # Websockets
  85. async-tungstenite = {version = "0.17.2", optional = true}
  86. tungstenite = {version = "0.17.3", optional = true}
  87. # socks5
  88. fast-socks5 = {version = "0.4.3", optional = true}
  89. # Crypto
  90. rand = {version = "0.8.5", optional = true}
  91. blake2b_simd = {version = "1.0.0", optional = true}
  92. blake3 = {version = "1.3.1", optional = true}
  93. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  94. group = {version = "0.12.0", optional = true}
  95. halo2_proofs = {version = "0.2.0", optional = true}
  96. halo2_gadgets = {version = "0.2.0", optional = true}
  97. incrementalmerkletree = {version = "0.3.0", optional = true}
  98. num-bigint = {version = "0.4.3", optional = true}
  99. num-traits = {version = "0.2.15", optional = true}
  100. pasta_curves = {version = "0.4.0", optional = true}
  101. sha2 = {version = "0.10.6", optional = true}
  102. # Smart contract runtime
  103. drk-sdk = {path = "src/sdk", optional = true}
  104. wasmer = {version = "2.3.0", optional = true}
  105. wasmer-compiler-singlepass = {version = "2.3.0", optional = true}
  106. wasmer-middlewares = {version = "2.3.0", optional = true}
  107. # Wallet management
  108. libsqlite3-sys = {version = "0.24.2", features = ["bundled-sqlcipher"], optional = true }
  109. sqlx = {version = "0.6.2", features = ["runtime-async-std-native-tls", "sqlite"], optional = true}
  110. # Blockchain store
  111. sled = {version = "0.34.7", optional = true}
  112. [dev-dependencies]
  113. clap = {version = "3.2.20", features = ["derive"]}
  114. halo2_proofs = {version = "0.2.0", features = ["dev-graph", "gadget-traces", "sanity-checks"]}
  115. halo2_gadgets = {version = "0.2.0", features = ["dev-graph", "test-dependencies"]}
  116. plotters = "0.3.4"
  117. # -----BEGIN LIBRARY FEATURES-----
  118. [features]
  119. async-runtime = [
  120. "async-std",
  121. "async-channel",
  122. "async-executor",
  123. "async-trait",
  124. "futures",
  125. "smol",
  126. ]
  127. blockchain = [
  128. "blake3",
  129. "chrono",
  130. "group",
  131. "halo2_gadgets",
  132. "halo2_proofs",
  133. "incrementalmerkletree",
  134. "lazy-init",
  135. "lazy_static",
  136. "pasta_curves",
  137. "rand",
  138. "sled",
  139. "url",
  140. "async-runtime",
  141. "crypto",
  142. "net",
  143. "serial",
  144. "tx",
  145. "node",
  146. "util",
  147. ]
  148. crypto = [
  149. "blake2b_simd",
  150. "blake3",
  151. "bs58",
  152. "crypto_api_chachapoly",
  153. "fxhash",
  154. "group",
  155. "halo2_gadgets",
  156. "halo2_proofs",
  157. "hex",
  158. "incrementalmerkletree",
  159. "lazy_static",
  160. "num-bigint",
  161. "num-traits",
  162. "pasta_curves",
  163. "rand",
  164. "serde",
  165. "serde_json",
  166. "sha2",
  167. "subtle",
  168. "util",
  169. "serial",
  170. "zkas",
  171. ]
  172. dht = [
  173. "blake3",
  174. "chrono",
  175. "fxhash",
  176. "rand",
  177. "async-runtime",
  178. "net",
  179. "serial",
  180. ]
  181. net = [
  182. "fxhash",
  183. "ed25519-compact",
  184. "fast-socks5",
  185. "futures-rustls",
  186. "hex",
  187. "structopt",
  188. "structopt-toml",
  189. "rand",
  190. "rcgen",
  191. "rustls-pemfile",
  192. "serde",
  193. "serde_json",
  194. "socket2",
  195. "url",
  196. "async-runtime",
  197. "serial",
  198. "system",
  199. "util",
  200. ]
  201. node = [
  202. "bs58",
  203. "group",
  204. "incrementalmerkletree",
  205. "lazy-init",
  206. "async-runtime",
  207. "blockchain",
  208. "crypto",
  209. "serial",
  210. "tx",
  211. "wallet",
  212. ]
  213. raft = [
  214. "chrono",
  215. "fxhash",
  216. "rand",
  217. "sled",
  218. "async-runtime",
  219. "net",
  220. "serial",
  221. "util",
  222. ]
  223. rpc = [
  224. "hex",
  225. "rand",
  226. "serde",
  227. "serde_json",
  228. "url",
  229. "async-runtime",
  230. "net",
  231. "serial",
  232. ]
  233. serial = [
  234. "darkfi-derive",
  235. ]
  236. system = [
  237. "fxhash",
  238. "rand",
  239. "async-runtime",
  240. ]
  241. tx = [
  242. "group",
  243. "incrementalmerkletree",
  244. "rand",
  245. "serial",
  246. "crypto",
  247. ]
  248. util = [
  249. "chrono",
  250. "dirs",
  251. "indicatif",
  252. "rand",
  253. "simplelog",
  254. "serde",
  255. "serde_json",
  256. "termion",
  257. "toml",
  258. "url",
  259. "serial",
  260. ]
  261. wallet = [
  262. "async-std",
  263. "bincode",
  264. "bs58",
  265. "group",
  266. "rand",
  267. "sqlx",
  268. "incrementalmerkletree",
  269. "libsqlite3-sys",
  270. "crypto",
  271. "serial",
  272. "util",
  273. ]
  274. wasm-runtime = [
  275. "wasmer",
  276. "wasmer-compiler-singlepass",
  277. "wasmer-middlewares",
  278. "drk-sdk",
  279. ]
  280. websockets = [
  281. "async-tungstenite",
  282. "tungstenite",
  283. ]
  284. zkas = [
  285. "termion",
  286. "indexmap",
  287. "itertools",
  288. "serial",
  289. ]
  290. # -----END LIBRARY FEATURES-----
  291. [[example]]
  292. name = "net"
  293. path = "example/net.rs"
  294. required-features = ["async-runtime", "net"]
  295. [[example]]
  296. name = "tx"
  297. path = "example/tx.rs"
  298. required-features = ["node"]
  299. [[example]]
  300. name = "zk"
  301. path = "example/zk.rs"
  302. required-features = ["crypto"]
  303. [[example]]
  304. name = "lead"
  305. path = "example/lead.rs"
  306. required-features = ["node"]
  307. [[example]]
  308. name = "crypsinous"
  309. path = "example/crypsinous.rs"
  310. required-features = ["node"]