Fix cargo audit setup

This commit is contained in:
Abdulla Abdurakhmanov 2024-04-22 14:10:15 +02:00
parent 47da5c29f4
commit b7c5a14b5d
No known key found for this signature in database
GPG key ID: FCDF08B0ECE6E69B
2 changed files with 11 additions and 12 deletions

View file

@ -18,4 +18,4 @@ jobs:
with:
toolchain: stable
components: rustfmt, clippy
- run: cargo install cargo-audit && cargo audit || true && cargo audit
- run: cargo audit || true && cargo audit

View file

@ -23,7 +23,7 @@ path = "src/lib.rs"
[features]
default = []
signature-verifier = ["dep:ring"]
hyper = ["dep:tokio", "dep:http-body-util", "dep:hyper", "dep:hyper-rustls", "dep:hyper-util", "dep:tokio-stream","dep:tokio-tungstenite", "dep:signal-hook", "dep:signal-hook-tokio", "signature-verifier"]
hyper = ["dep:tokio", "dep:http-body-util", "dep:hyper", "dep:hyper-rustls", "dep:hyper-util", "dep:tokio-stream", "dep:tokio-tungstenite", "dep:signal-hook", "dep:signal-hook-tokio", "signature-verifier"]
axum = ["hyper", "dep:axum", "dep:tower"]
[dependencies]
@ -44,23 +44,23 @@ http = "1.1"
async-trait = "0.1"
bytes = "1"
rand = "0.8"
async-recursion="1.0"
async-recursion = "1.0"
mime = "0.3"
mime_guess = "2"
chrono = { version = "0.4", default-features = false, features = ["clock", "std", "serde"] }
url = { version = "2.5", features = ["serde"]}
url = { version = "2.5", features = ["serde"] }
http-body-util = { version = "0.1", optional = true }
hyper = { version ="1.3", features = ["http2","server", "client"], optional = true }
hyper = { version = "1.3", features = ["http2", "server", "client"], optional = true }
hyper-util = { version = "0.1", features = ["client", "client-legacy", "server"], optional = true }
tokio = { version = "1", features = ["bytes","rt-multi-thread","signal","tracing"], optional = true }
tokio = { version = "1", features = ["bytes", "rt-multi-thread", "signal", "tracing"], optional = true }
tokio-stream = { version = "0.1", optional = true }
hyper-rustls = { version="0.26", features = ["rustls-native-certs", "http2"], optional = true }
hyper-rustls = { version = "0.26", features = ["rustls-native-certs", "http2"], optional = true }
tokio-tungstenite = { version = "0.21.0", features = ["rustls-tls-native-roots"], optional = true }
axum = { version = "0.7", optional = true }
tower = { version = "0.4", optional = true }
[target.'cfg(not(windows))'.dependencies]
signal-hook = { version = "0.3", default-features = false, features = ["extended-siginfo"], optional = true}
signal-hook = { version = "0.3", default-features = false, features = ["extended-siginfo"], optional = true }
signal-hook-tokio = { version = "0.3", default-features = false, features = ["futures-v0_3"], optional = true }
[target.'cfg(windows)'.dependencies]
@ -68,14 +68,13 @@ ctrlc = { version = "3.4", features = ["termination"] }
[dev-dependencies]
cargo-husky = { version = "1", default-features = false, features = ["run-for-all", "prepush-hook", "run-cargo-fmt"] }
cargo-audit = "0.20"
tracing-subscriber = { version ="0.3", features = ["env-filter"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
hyper-proxy2 = "0.1"
hyper = { version ="1.3", features = ["full"] }
hyper = { version = "1.3", features = ["full"] }
tokio = { version = "1", features = ["full"] }
[package.metadata.release]
tag-prefix=""
tag-prefix = ""
[[example]]
name = "client"