Cargo.toml 4.5 KB

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