Cargo.toml 3.9 KB

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