mirror of https://github.com/ctz/rustls
Cargo.toml: disentangle std/aws_lc_rs features
This commit is contained in:
parent
425b527290
commit
cf098b08d3
|
@ -67,12 +67,12 @@ jobs:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
|
|
||||||
- name: cargo test (debug; aws-lc-rs)
|
- name: cargo test (debug; aws-lc-rs)
|
||||||
run: cargo test --no-default-features --features aws_lc_rs,tls12,read_buf,logging --all-targets
|
run: cargo test --no-default-features --features aws_lc_rs,tls12,read_buf,logging,std --all-targets
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
|
|
||||||
- name: cargo test (release; fips)
|
- name: cargo test (release; fips)
|
||||||
run: cargo test --release --no-default-features --features fips,tls12,read_buf,logging --all-targets
|
run: cargo test --release --no-default-features --features fips,tls12,read_buf,logging,std --all-targets
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
|
|
||||||
|
@ -132,15 +132,15 @@ jobs:
|
||||||
working-directory: rustls
|
working-directory: rustls
|
||||||
|
|
||||||
- name: cargo test (debug; no default features; tls12)
|
- name: cargo test (debug; no default features; tls12)
|
||||||
run: cargo test --locked --no-default-features --features tls12
|
run: cargo test --locked --no-default-features --features tls12,std
|
||||||
working-directory: rustls
|
working-directory: rustls
|
||||||
|
|
||||||
- name: cargo test (debug; no default features; aws-lc-rs,tls12)
|
- name: cargo test (debug; no default features; aws-lc-rs,tls12)
|
||||||
run: cargo test --no-default-features --features aws_lc_rs,tls12
|
run: cargo test --no-default-features --features aws_lc_rs,tls12,std
|
||||||
working-directory: rustls
|
working-directory: rustls
|
||||||
|
|
||||||
- name: cargo test (debug; no default features; fips,tls12)
|
- name: cargo test (debug; no default features; fips,tls12)
|
||||||
run: cargo test --no-default-features --features fips,tls12
|
run: cargo test --no-default-features --features fips,tls12,std
|
||||||
working-directory: rustls
|
working-directory: rustls
|
||||||
|
|
||||||
- name: cargo test (release; no run)
|
- name: cargo test (release; no run)
|
||||||
|
@ -216,10 +216,10 @@ jobs:
|
||||||
run: cargo run -p rustls --release --locked --example bench
|
run: cargo run -p rustls --release --locked --example bench
|
||||||
|
|
||||||
- name: Smoke-test benchmark program (aws-lc-rs)
|
- name: Smoke-test benchmark program (aws-lc-rs)
|
||||||
run: cargo run -p rustls --release --locked --example bench --no-default-features --features aws_lc_rs,tls12
|
run: cargo run -p rustls --release --locked --example bench --no-default-features --features aws_lc_rs,tls12,std
|
||||||
|
|
||||||
- name: Smoke-test benchmark program (fips)
|
- name: Smoke-test benchmark program (fips)
|
||||||
run: cargo run -p rustls --release --locked --example bench --no-default-features --features fips,tls12
|
run: cargo run -p rustls --release --locked --example bench --no-default-features --features fips,tls12,std
|
||||||
|
|
||||||
- name: Run micro-benchmarks
|
- name: Run micro-benchmarks
|
||||||
run: cargo bench --locked --all-features
|
run: cargo bench --locked --all-features
|
||||||
|
|
|
@ -7,8 +7,8 @@ cargo llvm-cov clean --workspace
|
||||||
|
|
||||||
cargo build --locked --all-targets --all-features
|
cargo build --locked --all-targets --all-features
|
||||||
cargo test --locked --all-features
|
cargo test --locked --all-features
|
||||||
cargo test --locked --no-default-features --features tls12,logging,aws_lc_rs,fips
|
cargo test --locked --no-default-features --features tls12,logging,aws_lc_rs,fips,std
|
||||||
cargo test --locked --no-default-features --features tls12,logging,ring
|
cargo test --locked --no-default-features --features tls12,logging,ring,std
|
||||||
|
|
||||||
## bogo
|
## bogo
|
||||||
cargo test --locked --all-features run_bogo_tests_ring -- --ignored
|
cargo test --locked --all-features run_bogo_tests_ring -- --ignored
|
||||||
|
|
|
@ -7,11 +7,11 @@ set -xe
|
||||||
|
|
||||||
case ${BOGO_SHIM_PROVIDER:-ring} in
|
case ${BOGO_SHIM_PROVIDER:-ring} in
|
||||||
ring)
|
ring)
|
||||||
cargo build -p rustls --example bogo_shim
|
cargo build -p rustls --example bogo_shim --no-default-features --features ring,tls12,logging,std
|
||||||
cpp -P -DRING config.json.in -oconfig.json
|
cpp -P -DRING config.json.in -oconfig.json
|
||||||
;;
|
;;
|
||||||
aws-lc-rs)
|
aws-lc-rs)
|
||||||
cargo build -p rustls --example bogo_shim --no-default-features --features aws_lc_rs,tls12,logging
|
cargo build -p rustls --example bogo_shim --no-default-features --features aws_lc_rs,tls12,logging,std
|
||||||
cpp -P -DAWS_LC_RS config.json.in -oconfig.json
|
cpp -P -DAWS_LC_RS config.json.in -oconfig.json
|
||||||
;;
|
;;
|
||||||
existing)
|
existing)
|
||||||
|
|
|
@ -27,10 +27,10 @@ pki-types = { package = "rustls-pki-types", version = "1.2", features = ["alloc"
|
||||||
zeroize = "1.7"
|
zeroize = "1.7"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["logging", "std", "tls12"]
|
default = ["aws_lc_rs", "logging", "std", "tls12"]
|
||||||
std = ["aws_lc_rs", "webpki/std", "pki-types/std", "once_cell/std"]
|
std = ["webpki/std", "pki-types/std", "once_cell/std"]
|
||||||
logging = ["log"]
|
logging = ["log"]
|
||||||
aws_lc_rs = ["dep:aws-lc-rs", "webpki/aws_lc_rs", "std"]
|
aws_lc_rs = ["dep:aws-lc-rs", "webpki/aws_lc_rs"]
|
||||||
ring = ["dep:ring", "webpki/ring"]
|
ring = ["dep:ring", "webpki/ring"]
|
||||||
tls12 = []
|
tls12 = []
|
||||||
read_buf = ["rustversion", "std"]
|
read_buf = ["rustversion", "std"]
|
||||||
|
|
Loading…
Reference in New Issue