Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
34 lines (27 loc) · 1.44 KB
/
Copy pathjustfile
File metadata and controls
34 lines (27 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
build +FLAGS='':
cargo build {{ FLAGS }}
doc:
RUSTDOCFLAGS="--cfg docsrs -D warnings" cargo +nightly doc --workspace --all-features --no-deps
test: && test-native-tls check-rustls-tls-no-provider check-no-tls
cargo fmt --all -- --check
cargo clippy --workspace --all-targets --features blocking
cargo test --workspace --lib --tests --features blocking
cargo test --doc --all --features blocking
# The full test suite under the OpenSSL (native-tls) backend.
test-native-tls:
cargo test --workspace --lib --tests --no-default-features --features native-tls,test-registry,blocking
# rustls-tls-no-provider cannot run the test suite: it has no crypto provider
# until the embedding application installs one. A compile check is the
# strongest test available for this backend.
check-rustls-tls-no-provider:
cargo check --no-default-features --features rustls-tls-no-provider,test-registry,blocking
# Without a TLS feature, you can use the crate only with your own transport
# (`Client::new_with_transport`). This transport has its own TLS. Make sure
# that the crate and the custom-transport example build without TLS.
check-no-tls:
cargo check --no-default-features
cargo check --no-default-features --all-targets --features test-registry,blocking
check-wasm32:
cargo clippy --lib --target wasm32-unknown-unknown --no-default-features -- -D warnings
check-deny:
cargo deny --all-features check bans licenses sources advisories