Cargo.toml 7.4 KB

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