Cargo.toml 7.4 KB

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