Skip to content

Commit

Permalink
check each feature works on it's own (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
demoray authored Jan 25, 2023
1 parent 1cb04c7 commit c1fde99
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions eng/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion eng/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1fde99

Please sign in to comment.