Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.56.0, stable, beta, nightly]
rust: [1.71.0, stable, beta, nightly]
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
if: startsWith(matrix.rust, '1')
with:
path: ~/.cargo/registry/index
key: cargo-${{ matrix.rust }}-git-index
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
Expand All @@ -39,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.70.0
- uses: dtolnay/rust-toolchain@1.71.0
with:
components: rustfmt
- run: cargo fmt --all --check
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.56.0, stable]
rust: [1.71.0, stable]
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
if: startsWith(matrix.rust, '1')
with:
path: ~/.cargo/registry/index
key: cargo-${{ matrix.rust }}-git-index
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.56.0, stable]
rust: [1.71.0, stable]
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
if: startsWith(matrix.rust, '1')
with:
path: ~/.cargo/registry/index
key: cargo-${{ matrix.rust }}-git-index
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ categories = [ "science" ]
license = "MIT OR Apache-2.0"
name = "num-derive"
repository = "https://github.com/rust-num/num-derive"
version = "0.4.2"
version = "0.5.0"
readme = "README.md"
exclude = ["/ci/*", "/.github/*"]
edition = "2021"
rust-version = "1.56.0"
rust-version = "1.71.0"

[dependencies]
proc-macro2 = "1"
quote = "1"
syn = "2.0.5"
syn = "3"

[dev-dependencies]
num = "0.4"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![crate](https://img.shields.io/crates/v/num-derive.svg)](https://crates.io/crates/num-derive)
[![documentation](https://docs.rs/num-derive/badge.svg)](https://docs.rs/num-derive)
[![minimum rustc 1.56](https://img.shields.io/badge/rustc-1.56+-red.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
[![minimum rustc 1.71](https://img.shields.io/badge/rustc-1.71+-red.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
[![build status](https://github.com/rust-num/num-derive/actions/workflows/main.yaml/badge.svg)](https://github.com/rust-num/num-derive/actions/workflows/main.yaml)

Procedural macros to derive numeric traits in Rust.
Expand All @@ -14,7 +14,7 @@ Add this to your `Cargo.toml`:
```toml
[dependencies]
num-traits = "0.2"
num-derive = "0.4"
num-derive = "0.5"
```

and this to your crate root:
Expand Down Expand Up @@ -51,7 +51,7 @@ Release notes are available in [RELEASES.md](RELEASES.md).

## Compatibility

The `num-derive` crate is tested for rustc 1.56 and greater.
The `num-derive` crate is tested for rustc 1.71 and greater.

## License

Expand Down
7 changes: 7 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Release 0.5.0 (2026-07-20)

- [Upgrade to `syn v3`.][71]
- This raises the minimum supported rustc to 1.71.

[71]: https://github.com/rust-num/num-derive/pull/71

# Release 0.4.2 (2024-02-06)

- [Use anon-const to avoid RFC 3373 warnings.][62]
Expand Down
4 changes: 2 additions & 2 deletions ci/check/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "check"
version = "0.1.0"
authors = ["Josh Stone <cuviper@gmail.com>"]
edition = "2018"
rust-version = "1.56.0"
rust-version = "1.71.0"
publish = false

[dependencies.num-derive]
path = "../.."
Expand Down
3 changes: 1 addition & 2 deletions ci/import/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[package]
name = "import"
version = "0.0.1"
authors = ["jean-airoldie <25088801+jean-airoldie@users.noreply.github.com>"]
edition = "2018"
rust-version = "1.71.0"
publish = false
rust-version = "1.56.0"

[dependencies]
num-derive = { path = "../.." }
Expand Down
2 changes: 1 addition & 1 deletion ci/rustup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
set -ex

ci=$(dirname $0)
for version in 1.56.0 stable beta nightly; do
for version in 1.71.0 stable beta nightly; do
rustup run "$version" "$ci/test_full.sh"
done
2 changes: 1 addition & 1 deletion ci/test_full.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

CRATE=num-derive
MSRV=1.56
MSRV=1.71

get_rust_version() {
local array=($(rustc --version));
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

#![crate_type = "proc-macro"]
#![doc(html_root_url = "https://docs.rs/num-derive/0.3")]
#![recursion_limit = "512"]

//! Procedural macros to derive numeric traits in Rust.
Expand All @@ -21,7 +20,7 @@
//! ```toml
//! [dependencies]
//! num-traits = "0.2"
//! num-derive = "0.3"
//! num-derive = "0.5"
//! ```
//!
//! Then you can derive traits on your own types:
Expand Down
Loading