diff --git a/Cargo.toml b/Cargo.toml index f7d1b5c..300386f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,9 +13,9 @@ edition = "2021" [features] default = ["put", "blobstore"] -put = ["reqwest/stream", "url", "tokio", "tokio-util", "native-tls"] -blobstore = ["url", "azure_core", "azure_storage", "azure_storage_blobs", "tokio", "tokio-util", "async-channel", "native-tls"] -status = ["atty", "indicatif"] +put = ["dep:reqwest", "reqwest?/stream", "dep:url", "dep:tokio", "dep:tokio-util", "dep:native-tls"] +blobstore = ["dep:url", "dep:azure_core", "dep:azure_storage", "dep:azure_storage_blobs", "dep:tokio", "dep:tokio-util", "dep:async-channel", "dep:native-tls"] +status = ["dep:atty", "dep:indicatif"] [dependencies] byteorder = "1.4" diff --git a/eng/build.sh b/eng/build.sh index f6284c1..1f92830 100755 --- a/eng/build.sh +++ b/eng/build.sh @@ -14,6 +14,9 @@ cargo fmt -- --check cargo semver-checks check-release cargo clippy --locked --all-targets --all-features -- -D warnings -D clippy::pedantic -A clippy::missing_errors_doc cargo test --release --target x86_64-unknown-linux-musl --locked --all-targets --all-features +for FEATURE in $(cargo metadata --locked --format-version 1 | jq '.packages | [.[] | select(.name=="avml")][0].features | keys | @tsv' -r); do + cargo check --release --target x86_64-unknown-linux-musl --locked --no-default-features --features ${FEATURE} +done cargo build --release --no-default-features --target x86_64-unknown-linux-musl --locked cp target/x86_64-unknown-linux-musl/release/avml target/x86_64-unknown-linux-musl/release/avml-minimal cargo build --release --target x86_64-unknown-linux-musl --locked diff --git a/eng/setup.sh b/eng/setup.sh index 7b79779..f5103be 100755 --- a/eng/setup.sh +++ b/eng/setup.sh @@ -6,7 +6,7 @@ set -uvex -o pipefail -DEBIAN_FRONTEND=noninteractive sudo apt-get install musl-dev musl-tools musl +DEBIAN_FRONTEND=noninteractive sudo apt-get install musl-dev musl-tools musl jq rustup component add rustfmt rustup target add x86_64-unknown-linux-musl