diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f153e0..7a1bb37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,6 +76,24 @@ jobs: - name: cd lib && cargo +nightly build --release --no-default-features run: cargo +nightly build --release --no-default-features working-directory: lib + - name: cd lib && cargo +nightly build --features=v3-preview + run: cargo +nightly build --features=v3-preview + working-directory: lib + - name: cd lib && cargo +nightly build --release --features=v3-preview + run: cargo +nightly build --release --features=v3-preview + working-directory: lib + - name: cd lib && cargo +nightly build --no-default-features --features=alloc --features=v3-preview + run: cargo +nightly build --no-default-features --features=alloc --features=v3-preview + working-directory: lib + - name: cd lib && cargo +nightly build --release --no-default-features --features=alloc --features=v3-preview + run: cargo +nightly build --release --no-default-features --features=alloc --features=v3-preview + working-directory: lib + - name: cd lib && cargo +nightly build --no-default-features --features=v3-preview + run: cargo +nightly build --no-default-features --features=v3-preview + working-directory: lib + - name: cd lib && cargo +nightly build --release --no-default-features --features=v3-preview + run: cargo +nightly build --release --no-default-features --features=v3-preview + working-directory: lib - name: cd lib/macro/internal && cargo +nightly build run: cargo +nightly build working-directory: lib/macro/internal @@ -109,6 +127,9 @@ jobs: - name: cd lib && cargo +nightly test run: cargo +nightly test working-directory: lib + - name: cd lib && cargo +nightly test --features=v3-preview + run: cargo +nightly test --features=v3-preview + working-directory: lib - name: cd lib/macro/internal && cargo +nightly test run: cargo +nightly test working-directory: lib/macro/internal @@ -139,9 +160,15 @@ jobs: - name: cd lib && cargo +nightly miri test run: cargo +nightly miri test working-directory: lib + - name: cd lib && cargo +nightly miri test --features=v3-preview + run: cargo +nightly miri test --features=v3-preview + working-directory: lib - name: cd lib && cargo +nightly bench run: cargo +nightly bench working-directory: lib + - name: cd lib && cargo +nightly bench --features=v3-preview + run: cargo +nightly bench --features=v3-preview + working-directory: lib - run: cd bin && ./bench.sh +nightly - name: cd lib && cargo +nightly audit --deny=warnings run: cargo +nightly audit --deny=warnings @@ -152,21 +179,6 @@ jobs: - name: cd lib/macro && cargo +nightly audit --deny=warnings run: cargo +nightly audit --deny=warnings working-directory: lib/macro - - name: cd bin && cargo +nightly audit --deny=warnings - run: cargo +nightly audit --deny=warnings - working-directory: bin - - name: cd nostd && cargo +nightly audit --deny=warnings - run: cargo +nightly audit --deny=warnings - working-directory: nostd - - name: cd lib/fuzz && cargo +nightly audit --deny=warnings - run: cargo +nightly audit --deny=warnings - working-directory: lib/fuzz - - name: cd cmp && cargo +nightly audit --deny=warnings - run: cargo +nightly audit --deny=warnings - working-directory: cmp - - name: cd www && cargo +nightly audit --deny=warnings - run: cargo +nightly audit --deny=warnings - working-directory: www - run: rustup install stable - run: cargo +stable install cargo-semver-checks - name: cd lib && cargo +stable build @@ -187,6 +199,24 @@ jobs: - name: cd lib && cargo +stable build --release --no-default-features run: cargo +stable build --release --no-default-features working-directory: lib + - name: cd lib && cargo +stable build --features=v3-preview + run: cargo +stable build --features=v3-preview + working-directory: lib + - name: cd lib && cargo +stable build --release --features=v3-preview + run: cargo +stable build --release --features=v3-preview + working-directory: lib + - name: cd lib && cargo +stable build --no-default-features --features=alloc --features=v3-preview + run: cargo +stable build --no-default-features --features=alloc --features=v3-preview + working-directory: lib + - name: cd lib && cargo +stable build --release --no-default-features --features=alloc --features=v3-preview + run: cargo +stable build --release --no-default-features --features=alloc --features=v3-preview + working-directory: lib + - name: cd lib && cargo +stable build --no-default-features --features=v3-preview + run: cargo +stable build --no-default-features --features=v3-preview + working-directory: lib + - name: cd lib && cargo +stable build --release --no-default-features --features=v3-preview + run: cargo +stable build --release --no-default-features --features=v3-preview + working-directory: lib - name: cd lib/macro/internal && cargo +stable build run: cargo +stable build working-directory: lib/macro/internal @@ -277,6 +307,24 @@ jobs: - name: cd lib && cargo +nightly build --release --no-default-features run: cargo +nightly build --release --no-default-features working-directory: lib + - name: cd lib && cargo +nightly build --features=v3-preview + run: cargo +nightly build --features=v3-preview + working-directory: lib + - name: cd lib && cargo +nightly build --release --features=v3-preview + run: cargo +nightly build --release --features=v3-preview + working-directory: lib + - name: cd lib && cargo +nightly build --no-default-features --features=alloc --features=v3-preview + run: cargo +nightly build --no-default-features --features=alloc --features=v3-preview + working-directory: lib + - name: cd lib && cargo +nightly build --release --no-default-features --features=alloc --features=v3-preview + run: cargo +nightly build --release --no-default-features --features=alloc --features=v3-preview + working-directory: lib + - name: cd lib && cargo +nightly build --no-default-features --features=v3-preview + run: cargo +nightly build --no-default-features --features=v3-preview + working-directory: lib + - name: cd lib && cargo +nightly build --release --no-default-features --features=v3-preview + run: cargo +nightly build --release --no-default-features --features=v3-preview + working-directory: lib - name: cd lib/macro/internal && cargo +nightly build run: cargo +nightly build working-directory: lib/macro/internal @@ -314,6 +362,24 @@ jobs: - name: cd lib && cargo +stable build --release --no-default-features run: cargo +stable build --release --no-default-features working-directory: lib + - name: cd lib && cargo +stable build --features=v3-preview + run: cargo +stable build --features=v3-preview + working-directory: lib + - name: cd lib && cargo +stable build --release --features=v3-preview + run: cargo +stable build --release --features=v3-preview + working-directory: lib + - name: cd lib && cargo +stable build --no-default-features --features=alloc --features=v3-preview + run: cargo +stable build --no-default-features --features=alloc --features=v3-preview + working-directory: lib + - name: cd lib && cargo +stable build --release --no-default-features --features=alloc --features=v3-preview + run: cargo +stable build --release --no-default-features --features=alloc --features=v3-preview + working-directory: lib + - name: cd lib && cargo +stable build --no-default-features --features=v3-preview + run: cargo +stable build --no-default-features --features=v3-preview + working-directory: lib + - name: cd lib && cargo +stable build --release --no-default-features --features=v3-preview + run: cargo +stable build --release --no-default-features --features=v3-preview + working-directory: lib - name: cd lib/macro/internal && cargo +stable build run: cargo +stable build working-directory: lib/macro/internal diff --git a/lib/CHANGELOG.md b/lib/CHANGELOG.md index 4e4414b..0616093 100644 --- a/lib/CHANGELOG.md +++ b/lib/CHANGELOG.md @@ -4,6 +4,7 @@ ### Patch +- Fix `needless-lifetimes` clippy lint - Improve documentation of `Encoding::decode_len()` (fixes #111) ## 2.6.0 diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 8ea7ed1..2a90cb7 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -1631,7 +1631,7 @@ pub struct Encoder<'a> { } #[cfg(feature = "alloc")] -impl<'a> Drop for Encoder<'a> { +impl Drop for Encoder<'_> { fn drop(&mut self) { self.encoding.encode_append(&self.buffer[.. self.length as usize], self.output); } diff --git a/xtask/src/main.rs b/xtask/src/main.rs index ceaf53d..4585856 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -496,6 +496,11 @@ impl Actions { // SemverChecks only guarantees support for stable. toolchain = Toolchain::Stable; } + // TODO(https://github.com/rustsec/rustsec/pull/1206): Remove when released. + if task == Task::Audit && !matches!(dir, Dir::Lib | Dir::MacroInternal | Dir::Macro) + { + continue; + } actions.insert(Action { os, toolchain, task, dir }); } }