-
Notifications
You must be signed in to change notification settings - Fork 26
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
project CI refresh #33
Conversation
* Reformats to better support parameters. * Adds merge_group trigger for supporting queued merges. * Adds cron scheduled build.
The `actions-rs/clippy-check` action is archived and there isn't a clear alternative. Since clippy is already being run in `rust.yml` the right fix seems to be removing this extra workflow.
This better matches what other rusticata crates are using.
Findings of the type: ``` warning: the item `AsMut` is imported redundantly --> src/utils.rs:1:20 | 1 | use std::convert::{AsMut, AsRef}; | ^^^^^ --> /rustc/a165f1f65015b1bd4afd2ec50700aaacf2e0c485/library/std/src/prelude/mod.rs:115:13 | = note: the item `AsMut` is already defined here | = note: `#[warn(unused_imports)]` on by default ```
Of the form: ``` error: unnecessary qualification --> src/error.rs:67:8 | 67 | I: std::fmt::Debug, | ^^^^^^^^^^^^^^^ | note: the lint level is defined here --> src/lib.rs:117:31 | 117 | unused_import_braces, unused_qualifications)] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary path segments | 67 - I: std::fmt::Debug, 67 + I: fmt::Debug, ```
``` error: usage of a legacy numeric constant --> src/pcapng.rs:544:22 | 544 | if caplen >= std::u32::MAX - 4 { | ^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: `-D clippy::legacy-numeric-constants` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::legacy_numeric_constants)]` help: use the associated constant instead | 544 | if caplen >= u32::MAX - 4 { | ~~~~~~~~ ```
* adds coverage for --all-features * adds coverage for --no-default-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.
Thanks a lot for all your contributions!
@chifflier If you want to leave this un-merged I can push an update to add the matrix config from asn1-rs later tonight after I'm finished work. Otherwise I'll follow-up in a separate PR. Thanks! |
Sure, you can push the commit to this PR. I'll wait so you do not need to open a new one. |
Adopts a similar feature matrix approach as the asn1-rs CI. `cargo test` will be run for no default features, default features, and all features. The asn1-rs matrix differs only by having a separate "no std" job that uses `--no-default-features`. Since this crate doesn't offer a std feature we roll this step into the same matrix as the other feature configs.
Done ☑️ |
Perfect, thanks! |
Continuing the CI standardization and refresh started in rusticata/rusticata-macros#8