66 Commits

Author SHA1 Message Date
Michael Rodler
2968dbcd75 chore(ci): run cargo-audit weekly to check for known vulnerabilities in dependencies. (#3246)
`cargo audit` checks for dependencies with known issues. This PR adds a github workflow that runs `cargo audit` on a weekly basis on `HEAD` and whenever a dependency changes.

Signed-off-by: Michael Rodler <mrodler@amazon.de>
Co-authored-by: Michael Rodler <mrodler@amazon.de>
Co-authored-by: f0rki <m@mrodler.eu>
2025-11-24 10:37:31 -05:00
tottoto
64ab7ae339 chore(ci): update to actions/checkout@v5 (#3935) 2025-08-22 06:18:49 -04:00
tottoto
24f0da8636 chore(ci): update to cargo-check-external-types-0.3.0 (#3928) 2025-08-11 08:30:05 -04:00
tottoto
de28b0e5b2 chore(ci): use msrv aware dependency resolver (#3831) 2025-01-20 10:20:34 -05:00
tottoto
5baf537b90 chore(ci): use yq to get rust-version in manifest (#3829) 2025-01-20 10:14:48 -05:00
Ion Ionascu
8cf1121977 test(server): fix conditional cfg for tests needing the server feature (#3799)
Update tests that require the server feature to only be compiled when the feature is enabled.
After updating these tests, the server feature is no longer required for the ffi job when
running tests.

Closes #3790
2024-11-29 13:25:22 -05:00
Sean McArthur
7f4a68265c feat(ffi): add cargo-c support (#3787)
Closes #3786
2024-11-22 12:46:09 -05:00
Sean McArthur
4694f38782 chore(ci): pin hashbrown in MSRV job (#3783) 2024-11-15 07:51:57 -05:00
tottoto
e84461660c chore(ci): use tokio-util 0.7.11 in msrv job (#3754) 2024-09-12 04:41:14 -07:00
tottoto
60e5088440 chore(ci): update to taiki-e/cache-cargo-install-action@v2 (#3726) 2024-08-03 13:40:18 -07:00
Sean McArthur
2babc93113 chore(ci): pin tokio in msrv job (#3719) 2024-07-31 12:52:54 +00:00
Urgau
0a22e78f3d chore(cargo): add unexpected cfgs to [lints] table (#3678) 2024-06-17 09:49:57 -04:00
tottoto
f9aa697ec3 chore: update to cargo-check-external-types 0.1.12 (#3679) 2024-05-30 19:43:50 +08:00
tottoto
56ef0cc791 chore(lib): fix unexpected cfg warning (#3660) 2024-05-08 08:31:01 -04:00
tottoto
aa9aa0d43f chore(ci): update location of code style document 2024-02-25 07:04:20 -05:00
tottoto
f829a7a5b2 chore(ci): set rustfmt edition to 2021 2024-02-25 07:04:20 -05:00
tottoto
00a703a9ef chore(ci): update to cargo-check-external-types 0.1.11 2024-02-15 08:59:10 -04:00
Sean McArthur
0f2929b944 chore(ci): enable benchmark timeline in CI again (#3490) 2023-12-15 11:27:42 -05:00
tottoto
19c59d53e8 chore(ci): check tracing feature (#3485)
Closes #3484
2023-12-14 11:24:57 -05:00
Sean McArthur
883cb5ab0c chore(ci): add semver check 2023-12-12 08:58:52 -05:00
tottoto
f1bb2aad65 chore(ci): add minimal versions checking 2023-11-15 15:15:05 -05:00
tottoto
c0431c6a26 chore(ci): fix rustfmt edition to 2018 (#3389) 2023-11-06 07:02:26 -05:00
tottoto
2f7dc9cd1c doc(lib): resolve rustdoc warning (#3361) 2023-10-26 13:48:22 -04:00
tottoto
a735b2bc8b chore(ci): update to cargo-check-external-types 0.1.9 (#3357) 2023-10-19 12:04:55 -04:00
tottoto
f951031be7 chore(ci): cache rust dependency (#3353) 2023-10-18 13:47:18 -04:00
tottoto
cd6af662a4 refactor(lib): resolve unused warning (#3344)
In CI, check unused_imports and dead_code
2023-10-12 15:01:02 -04:00
tottoto
76b34033e1 chore(ci): use cargo-hack --no-dev-deps option to check without dev-dependencies (#3342) 2023-10-11 15:08:44 -04:00
tottoto
e8e059e3a4 chore(ci): check unused dependencies (#3334)
And move itoa to http1 feature
2023-10-03 20:02:19 -04:00
Ramzi Abou Chahine
da3fc76c06 feat(upgrade): introduce tracing as an optional unstable feature (#3326)
* feat(upgrade): introduce tracing as an optional unstable feature

This change allow users to opt out of tracing via the `tracing` crate
by adding tracing as an optional feature. This change is part of the
effort, outlined in #2874, to reach hyper 1.0.

- Introduce several macros that act as wrappers around the `tracing`
module's macros to allow for more concise syntax for conditional
compilation of `tracing` macro calls. As `tracing` is unstable,
the new `trace` module will facilitate transitioning `tracing`
to an optional feature, as outlined in #2874 and #3326.
- Refactor code to utilize tracing macros from the new `trace` module.
- Add a `rustc` configuration flag (`hyper_unstable_tracing`) that must be passed
to the compiler when using the `tracing` feature. Throw a compiler error if `tracing`
is enabled without the flag. Part of the effort to transtition `tracing` to an
unstable dependecy. See #3326 and #2874.
- Modify `package.metadata.docs.rs` in `Cargo.toml` to include `tracing`
to list of `features` and `--cfg hyper_unstable_tracing` to the list of
`rustdoc-args`.
- Add unstable section to `lib.rs` detailing unstable features. Add information about `tracing`
and `ffi` to unstable features section.
- Log errors as a field rather than part of a formatted string.

Closes #3319

BREAKING CHANGES: tracing is disabled by default and requires users to
  opt in to an unstable feature to revert to previous behavior.
2023-10-02 16:15:09 -04:00
tottoto
cd9c1a73c1 chore(ci): Replace actions-rs/install with taiki-e/cache-cargo-install-action 2023-10-02 09:01:32 -04:00
tottoto
08cb0acb09 chore(ci): update to actions/checkout@v4 2023-10-02 09:01:32 -04:00
Paul Lange
4281b44d0b chore(ci): check external types (#3152)
This adds CI job that runs `cargo-check-external-types` against a
whitelist of exported types.

Closes #2925
2023-09-19 08:50:24 -04:00
tottoto
7f0c7ba575 chore(ci): Update to actions/checkout@v4 (#3308) 2023-09-09 07:38:08 -04:00
Sean McArthur
9169a7ce81 chore(ci): check C header file with stable rust 2023-06-29 15:28:24 -04:00
Ruben2424
fa9d113d71 style(lib): cargo fmt cfg workaround (#3255)
Modules that were marked in macros to conditionally enable them were ignored by `cargo fmt`. This changes CI to manually check all Rust files instead.

Also applies missing style changes that were detected.
2023-06-16 16:05:28 -04:00
tottoto
d69a39ce87 chore(ci): replace actions-rs with run and use taiki-e/install-action or taiki-e/cache-cargo-install-action 2023-04-17 16:08:50 -04:00
nickelc
47f614fd99 chore(ci): Get the MSRV for the build job from the package metadata (#3171) 2023-03-13 16:52:54 -04:00
Andy Caldwell
468b9af4cc chore(ffi): Revamp gen_header using cargo-expand (#3092) 2022-12-29 12:02:52 -05:00
Olivia Crain
984760f76a chore(ci): replace unmaintained actions-rs/toolchain action
The actions-rs GitHub org as a whole is unmaintained, and actions
from this org will start failing in July 2023. This PR replaces
the actions-rs/toolchain action with dtolnay/rust-toolchain, which
is actively maintained.
2022-12-22 18:23:12 -05:00
Olivia Crain
d11aaacb93 chore(ci): upgrade actions/checkout to latest major version 2022-12-22 06:39:23 -05:00
Weihang Lo
bd7928f3dd chore(ffi): Use stable rust for building C API (#2993) 2022-09-22 16:29:13 -07:00
Alex
9a02774353 chore(ci): harden GitHub Workflow permissions (#2985)
Signed-off-by: Alex Low <aleksandrosansan@gmail.com>
2022-09-19 10:02:46 -07:00
Sean McArthur
491b076bca chore(ci): disable CI benchmarks publishing (#2933) 2022-07-29 16:55:49 -07:00
Oddbjørn Grødem
ce72f73464 feat(lib): remove stream cargo feature (#2896)
Closes #2855
2022-06-23 15:12:24 -07:00
Sean McArthur
a563404033 chore(lib): bump MSRV to 1.56 (#2902) 2022-06-23 14:52:36 -07:00
Ralf Jung
e1138d716d test(lib): add CI job to test with Miri 2022-04-21 12:55:52 -07:00
Rémy Rakic
bd591f43fd chore(ci): test FFI on CI using nightly
Now that FFI is opt-in using cargo's --crate-type, nightly needs to be used
on CI: this flag is still unstable and requires a nightly to enable -Z unstable options.
2022-03-03 15:05:42 -08:00
Sean McArthur
75345222d7 chore(ci): increase MSRV to 1.49 2022-02-24 09:48:41 -08:00
Sean McArthur
d0c6aaa59d chore(ci): only run cargo check on MSRV, not tests 2021-10-18 09:52:21 -07:00
Sean McArthur
ecd5dc1034 docs(contrib): add Minimum Support Rust Version (MSRV) policy 2021-09-21 16:02:04 -07:00