dev/Cargo.toml
2024-06-11 21:48:59 +03:00

201 lines
5.4 KiB
TOML

[package]
name = "dev"
version = "0.1.0"
edition = "2021"
build = "src/build.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "dev"
crate-type = ["staticlib", "cdylib", "rlib"]
[dependencies]
# Main
tokio = { version = "1", features = ["full"] }
tokio-native-tls = "0.3.1"
quinn = "0.10.*"
rumqttc = "0.23.0"
iggy = { version = "0.1.2" }
keepcalm = "0.3.5"
async-trait = "0.1.*"
toml = "0.8.*"
strum = { version = "0.26.1", features = ["derive"] }
axum = { version = "0.7.2" }
axum-server = { version = "0.6.0", features = ["tls-rustls", "tokio-rustls"] }
xitca-http = { version = "0.2.2", features = [
"http1",
"http2",
"http3",
"openssl",
"rustls",
] }
xitca-web = { version = "0.2.2", features = [
"codegen",
"cookie",
"json",
"rate-limit",
"tower-http-compat",
] }
xitca-router = { version = "0.2" }
xitca-codegen = { version = "0.1.1" }
xitca-service = { version = "0.1" }
xitca-server = { version = "0.1" }
xitca-io = { version = "0.1" }
# http-rate = "0.1.1"
# xitca-web = "0.2"
# xitca-router = "0.2"
# xitca-http = "0.2"
# xitca-web = { package = "xitca-web", git = "https://github.com/HFQR/xitca-web.git", branch="main" , features = ["codegen", "cookie", "json"]}
# xitca-http = { package = "xitca-http", git = "https://github.com/HFQR/xitca-web.git", branch="main" , features = ["http1","http2", "router", "http3", "openssl", "rustls"]}
# xitca-codegen = { git = "https://github.com/HFQR/xitca-web.git", branch="main" }
# xitca-router = { git = "https://github.com/HFQR/xitca-web.git", branch="main" }
# xitca-router = { version = "0.2", optional = true }
# xitca-http = { version = "0.1", default-features = false, features = ["http1","http2", "router", "http3", "openssl", "rustls"] }
# xitca-server = { version = "0.1", default-features = false, features = ["http3"] }
# xitca-service = { version = "0.1", default-features = false}
# xitca-service = { git = "https://github.com/HFQR/xitca-web.git", branch="main" }
# xitca-unsafe-collection = { version = "0.1", default-features = false}
# xitca-codegen = { version = "0.1", default-features = false}
lazy_static = "1.4.0"
sysinfo = "0.30.0"
openssl = "0.10.44"
rustls = { version = "0.21.10" }
rustls-pemfile = "2.0.0"
# Databases
sled = "0.34.7"
# Logging / Tracing
# tracing = { version = "0.1.*" }
tracing-appender = "0.2.2"
# tracing-subscriber = { version = "0.3.18", features = ["fmt"] }
tracing = { version = "0.1.40", default-features = false }
tracing-subscriber = { version = "0.3.16", default-features = false, features = [
"env-filter",
"fmt",
"ansi",
] }
env_logger = "0.10.0"
log = "~0"
prometheus-client = "0.22.0"
tower = { version = "0.4.13" }
tower-http = { version = "0.5.0", features = [
"add-extension",
"cors",
"trace",
"limit",
] }
tower-layer = "0.3.2"
tower-service = "0.3.2"
ulid = "1.1.0"
uuid = { version = "1.5.0", features = ["v4", "fast-rng", "zerocopy"] }
xxhash-rust = { version = "0.8.*", features = ["xxh32"] }
# Security
jsonwebtoken = "9.0.0"
ring = "0.17.*"
bcrypt = "0.15.0"
blake3 = "1.5.0"
aes-gcm = "0.10.3"
# rustls-pemfile = "1.0.1"
# Errors
thiserror = "1.0.*"
anyhow = "1.0.*"
# cli
clap = { version = "4.4.7", features = ["derive"] }
# Json Serialization and deserialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
rmp-serde = "1.1.2"
serde_with = { version = "3.4.0", features = ["base64"] }
# Fonts
figlet-rs = "0.1.5"
figment = { version = "0.10.*", features = ["json", "toml", "env"] }
# Miscelleneous
strip-ansi-escapes = "0.2.0"
# sysinfo = "0.29.*"
reqwest = { version = "0.11.*", features = ["json"] }
reqwest-middleware = "0.2.*"
reqwest-retry = "0.3.0"
cfg-if = "1"
humantime = "2.1.0"
base64 = "0.21.5"
regex = "1.10.2"
byte-unit = { version = "5.1.2", default-features = false, features = [
"serde",
"byte",
] }
bytes = "1.5.0"
chrono = { version = "0.4.31" }
comfy-table = { version = "7.1.0", optional = true }
crc32fast = "1.3.2"
# ===============================
flume = "0.11.0"
futures = "0.3.30"
moka = { version = "0.12.1", features = ["future"] }
rcgen = "0.12.0"
[dev-dependencies]
libc = "0.2.147"
[build-dependencies]
vergen = { version = "8.2.*", features = [
"build",
"cargo",
"git",
"gitcl",
"rustc",
] }
# [features]
# axum = ["dep:axum"]
# xitca-web = ["dep:xitca-web"]
# # cargo run -F axum --bin tcptls
# # run cargo run --no-default-features --bin tcptls to turn it off
# default = ["axum"]
# [features]
# xitca = ["dep:xitca-web"]
# axum = ["dep:axum"]
# # cargo run -F axum --bin tcptls
# # cargo run -F xitca-web --bin tcptls
# # run cargo run --no-default-features --bin tcptls to turn it off
# default = ["xitca"]
[profile.release]
opt-level = "z"
lto = "fat"
debug = 0
strip = true
codegen-units = 1
# [profile.release]
# opt-level = 3
# lto = true
# codegen-units = 1
# panic = "abort"
# strip = "symbols"
[patch.crates-io]
xitca-http = { git = "https://github.com/HFQR/xitca-web.git", rev = "e27d4fc" }
xitca-router = { git = "https://github.com/HFQR/xitca-web.git", rev = "e27d4fc" }
xitca-web = { git = "https://github.com/HFQR/xitca-web.git", rev = "e27d4fc" }
xitca-service = { git = "https://github.com/HFQR/xitca-web.git", rev = "e27d4fc" }
xitca-server = { git = "https://github.com/HFQR/xitca-web.git", rev = "e27d4fc" }
xitca-codegen = { git = "https://github.com/HFQR/xitca-web.git", rev = "e27d4fc" }
[profile.dev]
debug = "line-tables-only"
opt-level = 1
panic = "abort"