Cargo.toml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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/darkfid2",
  22. "bin/drk",
  23. "bin/faucetd",
  24. #"bin/gatewayd",
  25. "bin/ircd",
  26. "bin/ircd2",
  27. "bin/dnetview",
  28. "bin/daod",
  29. "bin/dao-cli",
  30. "bin/tau/taud",
  31. "bin/tau/tau-cli",
  32. "bin/vanityaddr",
  33. "src/sdk",
  34. "src/util/derive",
  35. "src/util/derive-internal",
  36. ]
  37. [dependencies]
  38. # Hard dependencies
  39. libc = "0.2.124"
  40. log = "0.4.16"
  41. thiserror = "1.0.30"
  42. # async-runtime
  43. smol = {version = "1.2.5", optional = true}
  44. futures = {version = "0.3.21", optional = true}
  45. async-std = {version = "1.11.0", features = ["attributes"], optional = true}
  46. async-trait = {version = "0.1.53", optional = true}
  47. async-channel = {version = "1.6.1", optional = true}
  48. async-executor = {version = "1.4.1", optional = true}
  49. # async-net
  50. async-native-tls = {version = "0.4.0", optional = true}
  51. native-tls = {version = "0.2.10", optional = true}
  52. # Networking
  53. socket2 = {version = "0.4.4", optional = true}
  54. futures-rustls = {version = "0.22.1", features = ["dangerous_configuration"], optional = true}
  55. # TLS cert utilities
  56. ed25519-compact = {version = "1.0.11", features = ["pem"], optional = true}
  57. rcgen = {version = "0.9.2", features = ["pem"], optional = true}
  58. rustls-pemfile = {version = "0.3.0", optional = true}
  59. # Encoding
  60. hex = {version = "0.4.3", optional = true}
  61. bs58 = {version = "0.4.0", optional = true}
  62. toml = {version = "0.5.9", optional = true}
  63. bytes = {version = "1.1.0", optional = true}
  64. bincode = {version = "1.3.3", optional = true}
  65. num-bigint = {version = "0.4.3", features = ["serde"], optional = true}
  66. serde_json = {version = "1.0.79", optional = true}
  67. serde = {version = "1.0.136", features = ["derive"], optional = true}
  68. structopt = {version= "0.3.26", optional = true}
  69. # Utilities
  70. url = {version = "2.2.2", features = ["serde"], optional = true}
  71. dirs = {version = "4.0.0", optional = true}
  72. subtle = {version = "2.4.1", optional = true}
  73. lazy_static = {version = "1.4.0", optional = true}
  74. lazy-init = {version = "0.5.0", optional = true}
  75. fxhash = {version = "0.2.1", optional = true}
  76. indexmap = {version = "1.8.1", optional = true}
  77. itertools = {version = "0.10.3", optional = true}
  78. darkfi-derive = {path = "src/util/derive", optional = true}
  79. darkfi-derive-internal = {path = "src/util/derive-internal", optional = true}
  80. chrono = {version = "0.4.19", optional = true}
  81. regex = {version = "1.1.9", optional = true}
  82. # Misc
  83. termion = {version = "1.5.6", optional = true}
  84. simplelog = {version = "0.12.0", optional = true}
  85. # Websockets
  86. tungstenite = {version = "0.17.2", optional = true}
  87. async-tungstenite = {version = "0.17.2", optional = true}
  88. # socks5
  89. fast-socks5 = {git = "https://github.com/ghassmo/fast-socks5", optional = true}
  90. # Crypto
  91. bitvec = {version = "1.0.0", optional = true}
  92. rand = {version = "0.8.5", optional = true}
  93. blake3 = {version = "1.3.1", optional = true}
  94. sha2 = {version = "0.10.2", optional = true}
  95. group = {version = "0.11.0", optional = true}
  96. arrayvec = {version = "0.7.2", optional = true}
  97. blake2b_simd = {version = "1.0.0", optional = true}
  98. pasta_curves = {version = "0.3.1", optional = true}
  99. crypto_api_chachapoly = {version = "0.5.0", optional = true}
  100. incrementalmerkletree = {version = "0.3.0-beta.2", optional = true}
  101. halo2_proofs = {version = "0.1.0-beta.4", features = ["dev-graph", "gadget-traces", "sanity-checks"], optional = true}
  102. halo2_gadgets = {version = "0.1.0-beta.3", features = ["dev-graph", "test-dependencies"], optional = true}
  103. # Smart contract runtime
  104. drk-sdk = {path = "src/sdk", optional = true}
  105. wasmer = {version = "2.2.1", optional = true}
  106. wasmer-compiler-singlepass = {version = "2.2.1", optional = true}
  107. wasmer-middlewares = {version = "2.2.1", optional = true}
  108. # Wallet management
  109. sqlx = {version = "0.5.13", features = ["runtime-async-std-native-tls", "sqlite"], optional = true}
  110. libsqlite3-sys = {version = "0.24.2", features = ["bundled-sqlcipher"], optional = true }
  111. # Blockchain store
  112. sled = {version = "0.34.7", optional = true}
  113. [dev-dependencies]
  114. clap = {version = "3.1.12", features = ["derive"]}
  115. [features]
  116. async-runtime = [
  117. "async-std",
  118. "async-channel",
  119. "async-executor",
  120. "async-trait",
  121. "futures",
  122. "smol",
  123. ]
  124. async-net = [
  125. "async-native-tls",
  126. "native-tls",
  127. ]
  128. websockets = [
  129. "async-tungstenite",
  130. "tungstenite",
  131. ]
  132. util = [
  133. "hex",
  134. "bincode",
  135. "serde",
  136. "toml",
  137. "url",
  138. "simplelog",
  139. "serde_json",
  140. "dirs",
  141. "num-bigint",
  142. "fxhash",
  143. "darkfi-derive",
  144. "darkfi-derive-internal",
  145. ]
  146. rpc = [
  147. "rand",
  148. "url",
  149. "fast-socks5",
  150. "async-net",
  151. "async-runtime",
  152. "websockets",
  153. "util",
  154. "net",
  155. ]
  156. blockchain = [
  157. "blake3",
  158. "chrono",
  159. "indexmap",
  160. "sled",
  161. "crypto",
  162. "tx",
  163. "net",
  164. "util",
  165. ]
  166. system = [
  167. "fxhash",
  168. "rand",
  169. "async-runtime",
  170. ]
  171. net = [
  172. "fxhash",
  173. "socket2",
  174. "futures-rustls",
  175. "fast-socks5",
  176. "ed25519-compact",
  177. "rcgen",
  178. "regex",
  179. "rustls-pemfile",
  180. "structopt",
  181. "util",
  182. "system",
  183. ]
  184. net3 = [
  185. "fxhash",
  186. "socket2",
  187. "futures-rustls",
  188. "fast-socks5",
  189. "ed25519-compact",
  190. "rcgen",
  191. "regex",
  192. "rustls-pemfile",
  193. "structopt",
  194. "util",
  195. "system",
  196. ]
  197. crypto = [
  198. "bitvec",
  199. "blake3",
  200. "rand",
  201. "pasta_curves",
  202. "blake2b_simd",
  203. "incrementalmerkletree",
  204. "halo2_proofs",
  205. "halo2_gadgets",
  206. "subtle",
  207. "lazy_static",
  208. "group",
  209. "arrayvec",
  210. "crypto_api_chachapoly",
  211. "sha2",
  212. "bs58",
  213. "util",
  214. "zkas",
  215. ]
  216. wallet = [
  217. "sqlx",
  218. "libsqlite3-sys",
  219. "async-std",
  220. "crypto",
  221. "util",
  222. ]
  223. wasm-runtime = [
  224. "drk-sdk",
  225. "wasmer",
  226. "wasmer-compiler-singlepass",
  227. "wasmer-middlewares",
  228. ]
  229. node = [
  230. "url",
  231. "bytes",
  232. "lazy-init",
  233. "async-runtime",
  234. "blockchain",
  235. "crypto",
  236. "wallet",
  237. "util",
  238. "net",
  239. ]
  240. zkas = [
  241. "termion",
  242. "indexmap",
  243. "itertools",
  244. "util",
  245. ]
  246. raft = [
  247. "blake3",
  248. "sled",
  249. "util",
  250. "net",
  251. "rpc",
  252. ]
  253. tx = [
  254. "crypto",
  255. "util",
  256. ]
  257. [[example]]
  258. name = "net"
  259. path = "example/net.rs"
  260. required-features = ["async-runtime", "net"]
  261. [[example]]
  262. name = "tx"
  263. path = "example/tx.rs"
  264. required-features = ["node"]
  265. [[example]]
  266. name = "zk"
  267. path = "example/zk.rs"
  268. required-features = ["crypto"]