Cargo.toml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. [package]
  2. name = "darkfi"
  3. version = "0.2.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. [dependencies]
  13. log = "0.4.14"
  14. rand = "0.8.4"
  15. thiserror = "1.0.30"
  16. # async-runtime
  17. async-std = {version = "1.10.0", optional = true}
  18. async-executor = {version = "1.4.1", optional = true}
  19. async-trait = {version = "0.1.52", optional = true}
  20. futures = {version = "0.3.19", optional = true}
  21. smol = {version = "1.2.5", optional = true}
  22. # async-net
  23. async-native-tls = {version = "0.4.0", optional = true}
  24. native-tls = {version = "0.2.8", optional = true}
  25. # Encoding
  26. hex = {version = "0.4.3", optional = true}
  27. serde = {version = "1.0.133", features = ["derive"], optional = true}
  28. serde_json = {version = "1.0.74", optional = true}
  29. # Utilities
  30. dirs = {version = "4.0.0", optional = true}
  31. url = {version = "2.2.2", optional = true}
  32. # Misc
  33. num-bigint = {version = "0.4.3", optional = true}
  34. # Websockets
  35. tungstenite = {version = "0.16.0", optional = true}
  36. async-tungstenite = {version = "0.16.1", optional = true}
  37. # Blockchain
  38. [dependencies.rocksdb]
  39. # TODO: Revert to upstream after bd966750ec861d687913d59a9939a1408ac53131 is merged.
  40. git = "https://github.com/parazyd/rust-rocksdb"
  41. rev = "bd966750ec861d687913d59a9939a1408ac53131"
  42. default-features = false
  43. features = ["zstd"]
  44. optional = true
  45. [features]
  46. async-runtime = ["async-std", "async-executor", "async-trait", "futures", "smol"]
  47. async-net = ["async-native-tls", "native-tls"]
  48. websockets = ["tungstenite", "async-tungstenite"]
  49. util = ["async-runtime", "hex", "serde", "serde_json", "dirs", "num-bigint"]
  50. rpc = ["async-net", "util", "websockets", "url"]
  51. chain = ["rocksdb", "util"]
  52. # [dependencies.halo2_gadgets]
  53. # git = "https://github.com/parazyd/halo2_gadgets.git"
  54. # rev = "b45c527276bb2309f3b256eb5f45ccdcc5bd8c0f"
  55. # features = ["dev-graph", "test-dependencies"]
  56. # [dependencies]
  57. # # Crypto
  58. # halo2 = {version = "=0.1.0-beta.1", features = ["dev-graph", "gadget-traces", "sanity-checks"]}
  59. # incrementalmerkletree = "0.2.0"
  60. # pasta_curves = "0.2.1"
  61. # rand = "0.8.4"
  62. # num-bigint = {version = "0.4.3", features = ["rand", "serde"]}
  63. # blake2b_simd = "1.0.0"
  64. # group = "0.11.0"
  65. # crypto_api_chachapoly = "0.5.0"
  66. # arrayvec = "0.7.2"
  67. # sha2 = "0.9.8"
  68. # # Encoding and parsing
  69. # bincode = "1.3.3"
  70. # bs58 = "0.4.0"
  71. # bytes = "1.1.0"
  72. # hex = "0.4.3"
  73. # toml = "0.5.8"
  74. # url = "2.2.2"
  75. # serde_json = "1.0.72"
  76. # serde = {version = "1.0.130", features = ["derive"]}
  77. # # Async
  78. # async-std = "1.10.0"
  79. # async-trait = "0.1.51"
  80. # async-channel = "1.6.1"
  81. # native-tls = "0.2.8"
  82. # async-native-tls = "0.4.0"
  83. # async-executor = "1.4.1"
  84. # futures = "0.3.17"
  85. # smol = "1.2.5"
  86. # # Utilities
  87. # anyhow = "1.0.49"
  88. # clap = { version = "3.0.0", features = ["derive"] }
  89. # dirs = "4.0.0"
  90. # failure = "0.1.8"
  91. # lazy_static = "1.4.0"
  92. # log = "0.4.14"
  93. # num_cpus = "1.13.0"
  94. # signal-hook = "0.3.10"
  95. # simplelog = "0.11.1"
  96. # subtle = "2.4.1"
  97. # thiserror = "1.0.30"
  98. # # Used for Websockets client implementation.
  99. # async-tungstenite = "0.16.0"
  100. # tungstenite = "0.16.0"
  101. # #tui dependencies
  102. # crossbeam-channel = { version = "0.5.1", optional = true}
  103. # libc = { version = "0.2.112", optional = true}
  104. # termion = { version = "1.5.6", optional = true}
  105. # # node dependencies
  106. # ## Used for wallet management.
  107. # sqlx = {version = "0.5.10", features = ["runtime-async-std-native-tls", "sqlite"], optional = true}
  108. # libsqlite3-sys = {version = "0.23.1", features = ["bundled-sqlcipher"], optional = true }
  109. # ## Used for gatewayd network transport.
  110. # zeromq = {version = "0.3.1", default-features = false, features = ["async-std-runtime", "all-transport"], optional = true }
  111. # signal-hook-async-std = {version = "0.2.1", optional = true}
  112. # [workspace]
  113. # members = ["bin/drk", "bin/darkfid", "bin/gateway"]
  114. # exclude = ["bin/cashier", "bin/ircd", "bin/map"]
  115. # [features]
  116. # chain = ["rocksdb"]
  117. # node = ["sqlx", "libsqlite3-sys", "zeromq", "signal-hook-async-std"]
  118. # tui = ["termion", "libc", "crossbeam-channel"]
  119. # [[example]]
  120. # name = "net"
  121. # path = "example/net.rs"
  122. # required-features = ["node", "chain"]
  123. # [[example]]
  124. # name = "tui"
  125. # path = "example/tui_ex.rs"
  126. # required-features = ["tui"]
  127. # [[example]]
  128. # name = "vm"
  129. # path = "example/vm.rs"
  130. # [[example]]
  131. # name = "vm_burn"
  132. # path = "example/vm_burn.rs"
  133. # [[example]]
  134. # name = "tx"
  135. # path = "example/tx.rs"
  136. # required-features = ["node"]
  137. # [[example]]
  138. # name = "tree"
  139. # path = "example/tree.rs"