Cargo.toml 6.4 KB

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