fix: issues when building SWS without default features (#480)

* fix: issues when building without default features
* fix: windows http1_cancel_recv build issues
This commit is contained in:
Jose Quintana
2024-09-10 15:28:54 +02:00
committed by GitHub
parent 6bb6138671
commit a3d40b8c2f
11 changed files with 82 additions and 31 deletions

View File

@@ -55,10 +55,10 @@ For example, if you want to run or build SWS without the default features like `
# run
cargo run --no-default-features -- -h
# or build
# build
cargo build --release --no-default-features
# or including all features (example)
# or build including all features (example)
RUSTFLAGS="--cfg tokio_unstable" \
cargo build -vv --release --features all
```
@@ -87,8 +87,13 @@ Built binaries can be found under the corresponding toolchain directory inside `
```sh
# run tests for default features
cargo test
# run all tests without default features
cargo test --tests --no-default-features
# or run tests for all features including experimental ones
RUSTFLAGS="--cfg tokio_unstable" cargo test --features all
# or run specific tests
cargo test --test rewrites
```