Skip to content

Commit

Permalink
Prepare 0.4.0 release (#28)
Browse files Browse the repository at this point in the history
## What?

Prepares the next library release.

## Why?

The release includes some QoL improvements. It is breaking since it
bumps MSRV.
  • Loading branch information
slowli authored Sep 29, 2024
1 parent 4f6ea6c commit 0e144cf
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
# Minimum supported Rust version.
msrv: 1.67.0
# Nightly Rust necessary for the no-std job.
nightly: nightly-2023-09-09
nightly: nightly-2024-07-07

jobs:
build-msrv:
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-deny
version: "^0.14"
version: "^0.16"

- name: Cache cargo build
uses: actions/cache@v4
Expand All @@ -61,7 +61,7 @@ jobs:
restore-keys: ${{ runner.os }}-cargo

- name: Format
run: cargo fmt --all -- --check
run: cargo fmt --all -- --check --config imports_granularity=Crate --config group_imports=StdExternalCrate
- name: Clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Check dependencies
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html)

## [Unreleased]

## 0.4.0 - 2024-09-29

### Added

- Add `decode!` macro that allows to skip specifying output length.
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ and describe the motivation behind it. If applicable, like to the related issue(
Optimally, you should check locally that the CI checks pass before submitting the PR. Checks included in the CI
include:

- Formatting using `cargo fmt --all`
- Formatting using `cargo fmt --all -- --config imports_granularity=Crate --config group_imports=StdExternalCrate`
- Linting using `cargo clippy`
- Linting the dependency graph using [`cargo deny`](https://crates.io/crates/cargo-deny)
- Running the test suite using `cargo test`
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "const-decoder"
version = "0.3.0"
version = "0.4.0"
authors = ["Alex Ostrovski <ostrovski.alex@gmail.com>"]
edition = "2021"
rust-version = "1.67"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Add this to your `Crate.toml`:

```toml
[dependencies]
const-decoder = "0.3.0"
const-decoder = "0.4.0"
```

Example of usage:
Expand Down
10 changes: 1 addition & 9 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
# `cargo-deny` configuration.

[output]
feature-depth = 1

[advisories]
db-urls = ["https://github.com/rustsec/advisory-db"]
vulnerability = "deny"
unmaintained = "deny"
unsound = "deny"
yanked = "deny"
notice = "warn"
severity-threshold = "Medium"

[licenses]
unlicensed = "deny"
allow = [
# Permissive open-source licenses
"MIT",
"Apache-2.0",
]
copyleft = "deny"
allow-osi-fsf-free = "neither"
default = "deny"
confidence-threshold = 0.8

[bans]
Expand Down
14 changes: 7 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,23 +98,23 @@

#![no_std]
// Documentation settings.
#![doc(html_root_url = "https://docs.rs/const-decoder/0.3.0")]
#![doc(html_root_url = "https://docs.rs/const-decoder/0.4.0")]
// Linter settings.
#![warn(missing_debug_implementations, missing_docs, bare_trait_objects)]
#![warn(clippy::all, clippy::pedantic)]
#![allow(clippy::must_use_candidate, clippy::shadow_unrelated)]

mod decoder;
mod macros;
#[cfg(test)]
mod tests;
mod wrappers;

pub use crate::{
decoder::{Decoder, Encoding},
macros::DecoderWrapper,
wrappers::{Pem, SkipWhitespace},
};

mod decoder;
mod macros;
#[cfg(test)]
mod tests;
mod wrappers;

#[cfg(doctest)]
doc_comment::doctest!("../README.md");
3 changes: 1 addition & 2 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ use base64::{
Engine as _,
};
use bech32::{Bech32, Hrp};
use rand::{thread_rng, RngCore};

use const_decoder::{decode, Decoder, Pem};
use rand::{thread_rng, RngCore};

#[test]
fn reading_from_file_works() {
Expand Down

0 comments on commit 0e144cf

Please sign in to comment.