2021-03-29 15:59:14 +08:00
|
|
|
[package]
|
|
|
|
name = "hbb_common"
|
|
|
|
version = "0.1.0"
|
2022-05-12 17:35:25 +08:00
|
|
|
authors = ["open-trade <info@opentradesolutions.com>"]
|
2021-03-29 15:59:14 +08:00
|
|
|
edition = "2018"
|
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
2023-03-09 17:22:14 +08:00
|
|
|
flexi_logger = { version = "0.25", features = ["async"] }
|
2022-07-14 23:26:03 +08:00
|
|
|
protobuf = { version = "3.1", features = ["with-bytes"] }
|
2022-07-15 01:29:52 +08:00
|
|
|
tokio = { version = "1.20", features = ["full"] }
|
|
|
|
tokio-util = { version = "0.7", features = ["full"] }
|
2021-03-29 15:59:14 +08:00
|
|
|
futures = "0.3"
|
2022-07-21 16:07:19 +08:00
|
|
|
bytes = { version = "1.2", features = ["serde"] }
|
2021-03-29 15:59:14 +08:00
|
|
|
log = "0.4"
|
2023-03-09 17:22:14 +08:00
|
|
|
env_logger = "0.10"
|
2021-03-29 15:59:14 +08:00
|
|
|
socket2 = { version = "0.3", features = ["reuseport"] }
|
2021-06-25 19:42:51 +08:00
|
|
|
zstd = "0.9"
|
2023-03-09 17:22:14 +08:00
|
|
|
quinn = {version = "0.9", optional = true }
|
2021-03-29 15:59:14 +08:00
|
|
|
anyhow = "1.0"
|
|
|
|
futures-util = "0.3"
|
|
|
|
directories-next = "2.0"
|
2021-06-25 19:42:51 +08:00
|
|
|
rand = "0.8"
|
2021-03-29 15:59:14 +08:00
|
|
|
serde_derive = "1.0"
|
|
|
|
serde = "1.0"
|
|
|
|
lazy_static = "1.4"
|
2021-07-24 18:25:07 +08:00
|
|
|
confy = { git = "https://github.com/open-trade/confy" }
|
2021-03-29 15:59:14 +08:00
|
|
|
dirs-next = "2.0"
|
|
|
|
filetime = "0.2"
|
|
|
|
sodiumoxide = "0.2"
|
2022-01-05 23:50:13 +08:00
|
|
|
regex = "1.4"
|
2022-01-24 02:26:07 +08:00
|
|
|
tokio-socks = { git = "https://github.com/open-trade/tokio-socks" }
|
2022-09-15 17:31:28 +08:00
|
|
|
chrono = "0.4"
|
2023-02-19 10:19:28 +08:00
|
|
|
backtrace = "0.3"
|
|
|
|
libc = "0.2"
|
2021-03-29 15:59:14 +08:00
|
|
|
|
|
|
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
|
|
|
|
mac_address = "1.1"
|
2022-06-20 10:41:46 +08:00
|
|
|
machine-uid = "0.2"
|
2023-03-11 01:34:33 +08:00
|
|
|
sysinfo = "0.28"
|
2021-03-29 15:59:14 +08:00
|
|
|
|
|
|
|
[features]
|
2022-05-12 17:35:25 +08:00
|
|
|
quic = []
|
2022-10-17 03:45:59 +08:00
|
|
|
flatpak = []
|
2021-03-29 15:59:14 +08:00
|
|
|
|
|
|
|
[build-dependencies]
|
2022-07-14 23:26:03 +08:00
|
|
|
protobuf-codegen = { version = "3.1" }
|
2021-03-29 15:59:14 +08:00
|
|
|
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
|
|
winapi = { version = "0.3", features = ["winuser"] }
|
|
|
|
|
2023-02-19 11:40:59 +08:00
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
|
|
osascript = "0.3.0"
|
|
|
|
|
2021-03-29 15:59:14 +08:00
|
|
|
[dev-dependencies]
|
2023-03-09 17:22:14 +08:00
|
|
|
toml = "0.7"
|
2023-03-11 01:34:33 +08:00
|
|
|
serde_json = "1.0"
|