-
Notifications
You must be signed in to change notification settings - Fork 1
Starting cg #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Starting cg #4
Conversation
the dummy crate will be removed as soon as we have one real crate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I allowed myself some bikesheeding, if you disagree don't bother to reply, it's bikesheeding.
name: fmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dtolnay/rust-toolchain@stable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cargo version is upgraded very quickly in Github images, not sure we need to bother with this
Having smart cargo cache with something like Swatinem/rust-cache might be more interesting
with: | ||
submodules: true | ||
- run: cargo build --all-features | ||
- run: cargo test --verbose --all --all-features |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be nice to run tests and clippy without features to check that the feature gate are correct
resolver = "3" | ||
|
||
[workspace.package] | ||
version = "0.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A discussion to have at some point: do we use the same version number for all crates or a version per crate?
dummy = { version = "0.1.0", path = "dummy" } | ||
|
||
[workspace.lints.clippy] | ||
enum_glob_use = "allow" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this lint allow by default?
Since workspaces must contain at least one package, this PR includes a dummy package which will be removed as soon as we have a real one in place.