diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5549be38..f5f4c13e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose - + lint: name: Rustfmt / Clippy runs-on: ubuntu-latest @@ -27,6 +27,18 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - + - name: Fmt run: cargo fmt --all -- --check + + cargo-shear: + name: 'cargo shear' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: rustup show + - name: Install cargo-binstall + uses: cargo-bins/cargo-binstall@main + - name: Install cargo-shear + run: cargo binstall --no-confirm cargo-shear + - run: cargo shear diff --git a/Cargo.toml b/Cargo.toml index 722d706d..f775fcb7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,6 @@ path = "src/bin/bench_ua.rs" [dependencies] async-trait = "0.1.89" futures = "0.3.31" -log = "0.4.28" rsip = { version = "0.4.0" } thiserror = "2.0.17" tracing = "0.1.41" @@ -35,7 +34,6 @@ futures-util = "0.3.31" tokio-tungstenite = { version = "0.28.0", optional = true } tokio-rustls = { version = "0.26.4", optional = true } rustls-pemfile = { version = "2.2.0", optional = true } -webpki-roots = { version = "1.0.4", optional = true } rustls = "0.23.35" clap = { version = "4.5.47", features = ["derive"] } http = "1.3.1" @@ -43,14 +41,13 @@ nom = "8.0.0" [features] default = ["rustls", "websocket", "rsip-dns"] -rustls = ["tokio-rustls", "rustls-pemfile", "webpki-roots"] +rustls = ["tokio-rustls", "rustls-pemfile"] websocket = ["tokio-tungstenite"] rsip-dns = ["dep:rsip-dns"] all-transports = ["rustls", "websocket"] [target.'cfg(target_arch = "wasm32")'.dependencies] tokio = { version = "1.47.1", features = ["time", "sync", "macros", "io-util"] } -getrandom = { version = "0.3.4" } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] tokio = { version = "1.48.0", features = ["full"] } @@ -60,15 +57,9 @@ dotenv = "0.15" sdp-rs = "0.2.1" rtp-rs = "0.6.0" stun-rs = "0.1.11" -openai-api-rs = "8.0.1" -base64 = "0.22.1" -serde = "1.0.228" -serde_json = "1.0.145" -dasp = { version = "0.11", features = ["all"] } axum = { version = "0.8.6", features = ["ws"] } tower = "0.5.2" tower-http = { version = "0.6.6", features = ["fs", "cors"] } -hyper = "1.7.0" [[example]] name = "client"