Skip to content

Commit 404aceb

Browse files
committed
Switch to Edition 2021, bump MSRV.
1 parent 9f90dba commit 404aceb

File tree

4 files changed

+18
-8
lines changed

4 files changed

+18
-8
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: [ staging, trying, master ]
3+
branches: [staging, trying, master]
44
pull_request:
55

66
name: Continuous integration
@@ -14,11 +14,12 @@ jobs:
1414
rust: [stable]
1515

1616
# The default target we're compiling on and for
17-
TARGET: [x86_64-unknown-linux-gnu, thumbv6m-none-eabi, thumbv7m-none-eabi]
17+
TARGET:
18+
[x86_64-unknown-linux-gnu, thumbv6m-none-eabi, thumbv7m-none-eabi]
1819

1920
include:
2021
# Test MSRV
21-
- rust: 1.53.0
22+
- rust: 1.60.0
2223
TARGET: x86_64-unknown-linux-gnu
2324

2425
# Test nightly but don't fail
@@ -42,7 +43,8 @@ jobs:
4243
strategy:
4344
matrix:
4445
rust: [nightly-2022-11-22]
45-
TARGET: [x86_64-unknown-linux-gnu, thumbv6m-none-eabi, thumbv7m-none-eabi]
46+
TARGET:
47+
[x86_64-unknown-linux-gnu, thumbv6m-none-eabi, thumbv7m-none-eabi]
4648

4749
steps:
4850
- uses: actions/checkout@v3

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
- Bump MSRV to 1.60.0 (required for Edition 2021)
11+
- Switch to Edition 2021
12+
1013
## [0.7.0] - 2023-06-21
1114

12-
* Add blanket impls of all the traits for mutable references.
15+
- Add blanket impls of all the traits for mutable references.
1316
- Bump dependency version of `no-std-net` to `v0.6`.
1417
- Bump MSRV to 1.53.0 due to `no-std-net`'s use of or-patterns.
1518
- Added support for `core::net` with the `ip_in_core` feature.
@@ -30,18 +33,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3033
## [0.4.0] - 2021-03-05
3134

3235
### Changed
36+
3337
- Changed [`Dns`](./src/dns.rs) methods to return `nb::Result<..>` to allow non-blocking implementations.
3438
- Bump dependency version of `heapless` to `v0.6.1` to address security issue of sub-dependency.
3539
- Bump dependency version of `no-std-net` to `v0.5`.
3640
- Bump MSRV to 1.46.0 to get `const-fn` for `no-std-net`.
3741

38-
3942
## [0.3.0] - 2021-02-15
4043

4144
### Added
45+
4246
- New optional struct [`SharedNal`](./src/stack/share.rs) that can share a single underlying implementation among several users within a thread.
4347

4448
### Changed
49+
4550
- Changed the names of `UdpClient`/`TcpClient` to `UdpClientStack`/`TcpClientStack`
4651
- Changed the names of `UdpServer`/`TcpServer` to `UdpFullStack`/`TcpFullStack`
4752
- Changed the method names `Dns::gethostbyname`/`Dns::gethostbyaddr` to `Dns::get_host_by_name`/`Dns::get_host_by_address`
@@ -50,10 +55,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
5055
## [0.2.0] - 2020-12-02
5156

5257
### Added
58+
5359
- Added a new `UdpServer` trait with server-specific methods
5460
- Added a new `TcpServer` trait with server-specific methods
5561

5662
### Changed
63+
5764
- Changed the `UdpStack::receive` method to return the packet sender address, along with the packet length
5865
- Changed the name of `UdpStack` to `UdpClient`
5966
- Changed name of `TcpStack` to `TcpClient`
@@ -63,6 +70,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6370
- Updated `UdpStack::connect()` to modify an existing socket
6471

6572
### Removed
73+
6674
- Removed `Mode` enum, implementations should instead use `nb::WouldBlock`
6775

6876
## [0.1.0] - 2020-08-26

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [
77
"Diego Barrios Romero <[email protected]>",
88
"Ryan Summers <[email protected]>",
99
]
10-
edition = "2018"
10+
edition = "2021"
1111
description = "A Network Abstraction Layer (NAL) for Embedded Systems"
1212
license = "MIT OR Apache-2.0"
1313
repository = "https://github.com/rust-embedded-community/embedded-nal"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ These issues / PRs will be labeled as `proposal`s in the issue tracker.
3535

3636
## Minimum Supported Rust Version (MSRV)
3737

38-
This crate is guaranteed to compile on stable Rust 1.53.0 and up. It *might*
38+
This crate is guaranteed to compile on stable Rust 1.60.0 and up. It _might_
3939
compile with older versions but that may change in any new patch release.
4040

4141
## License

0 commit comments

Comments
 (0)