Cargo.toml 7.4 KB

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