Skip to content

Conversation

SamedhG
Copy link

@SamedhG SamedhG commented Dec 4, 2019

Cargo check -h shows that the --all flag has been depreacated and replaced with the --workspace flag. Also rust-lang/cargo#5015 shows hat the --no-default-features is currently broken so we thought that this part of the pipeline should be deleted (at least until this gets fixed) from the cargo-check.yml file.

@djc
Copy link
Contributor

djc commented Dec 4, 2019

So I suppose this should be parametrized on the Rust version? Otherwise old Rust versions won't work. Otherwise looks okay to me.

- script: cargo check --all --bins --examples --tests
- script: cargo check --workspace --bins --examples --tests
displayName: Check compilation w/ default features
- script: cargo check --all --bins --examples --tests --no-default-features
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about for crates where --all evaluates to one crate?

condition: and(succeeded(), eq(variables.is_locked, 'true'))
displayName: Check that Cargo.lock is satisfiable
- script: cargo check --all --bins --examples --tests
- script: cargo check --workspace --bins --examples --tests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As djc mentioned, we support pinning to older Rust versions, particularly for MSRV validation. I think the simpler approach is for us to keep using --all until either they plan to remove it or until the Rust version is so old we don't care about supporting it still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants