mirror of
https://github.com/static-web-server/static-web-server.git
synced 2026-01-25 05:06:33 +00:00
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:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user