Skip to content

Commit

Permalink
Bump MSRV (#77)
Browse files Browse the repository at this point in the history
The bump is needed because of proc-macro2.

Also disable lang_items lint for nostd test.
  • Loading branch information
ia0 authored Aug 15, 2023
1 parent 48fefec commit 6e5aa43
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 58 deletions.
84 changes: 42 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,36 +206,36 @@ jobs:
- name: cd lib/macro && cargo +stable semver-checks check-release
run: cargo +stable semver-checks check-release
working-directory: lib/macro
- run: rustup install 1.47
- name: cd lib && cargo +1.47 build
run: cargo +1.47 build
- run: rustup install 1.70
- name: cd lib && cargo +1.70 build
run: cargo +1.70 build
working-directory: lib
- name: cd lib && cargo +1.47 build --release
run: cargo +1.47 build --release
- name: cd lib && cargo +1.70 build --release
run: cargo +1.70 build --release
working-directory: lib
- name: cd lib && cargo +1.47 build --no-default-features --features=alloc
run: cargo +1.47 build --no-default-features --features=alloc
- name: cd lib && cargo +1.70 build --no-default-features --features=alloc
run: cargo +1.70 build --no-default-features --features=alloc
working-directory: lib
- name: cd lib && cargo +1.47 build --release --no-default-features --features=alloc
run: cargo +1.47 build --release --no-default-features --features=alloc
- name: cd lib && cargo +1.70 build --release --no-default-features --features=alloc
run: cargo +1.70 build --release --no-default-features --features=alloc
working-directory: lib
- name: cd lib && cargo +1.47 build --no-default-features
run: cargo +1.47 build --no-default-features
- name: cd lib && cargo +1.70 build --no-default-features
run: cargo +1.70 build --no-default-features
working-directory: lib
- name: cd lib && cargo +1.47 build --release --no-default-features
run: cargo +1.47 build --release --no-default-features
- name: cd lib && cargo +1.70 build --release --no-default-features
run: cargo +1.70 build --release --no-default-features
working-directory: lib
- name: cd lib/macro/internal && cargo +1.47 build
run: cargo +1.47 build
- name: cd lib/macro/internal && cargo +1.70 build
run: cargo +1.70 build
working-directory: lib/macro/internal
- name: cd lib/macro/internal && cargo +1.47 build --release
run: cargo +1.47 build --release
- name: cd lib/macro/internal && cargo +1.70 build --release
run: cargo +1.70 build --release
working-directory: lib/macro/internal
- name: cd lib/macro && cargo +1.47 build
run: cargo +1.47 build
- name: cd lib/macro && cargo +1.70 build
run: cargo +1.70 build
working-directory: lib/macro
- name: cd lib/macro && cargo +1.47 build --release
run: cargo +1.47 build --release
- name: cd lib/macro && cargo +1.70 build --release
run: cargo +1.70 build --release
working-directory: lib/macro
windows:
runs-on: windows-latest
Expand Down Expand Up @@ -315,34 +315,34 @@ jobs:
- name: cd bin && cargo +stable build --release
run: cargo +stable build --release
working-directory: bin
- run: rustup install 1.47
- name: cd lib && cargo +1.47 build
run: cargo +1.47 build
- run: rustup install 1.70
- name: cd lib && cargo +1.70 build
run: cargo +1.70 build
working-directory: lib
- name: cd lib && cargo +1.47 build --release
run: cargo +1.47 build --release
- name: cd lib && cargo +1.70 build --release
run: cargo +1.70 build --release
working-directory: lib
- name: cd lib && cargo +1.47 build --no-default-features --features=alloc
run: cargo +1.47 build --no-default-features --features=alloc
- name: cd lib && cargo +1.70 build --no-default-features --features=alloc
run: cargo +1.70 build --no-default-features --features=alloc
working-directory: lib
- name: cd lib && cargo +1.47 build --release --no-default-features --features=alloc
run: cargo +1.47 build --release --no-default-features --features=alloc
- name: cd lib && cargo +1.70 build --release --no-default-features --features=alloc
run: cargo +1.70 build --release --no-default-features --features=alloc
working-directory: lib
- name: cd lib && cargo +1.47 build --no-default-features
run: cargo +1.47 build --no-default-features
- name: cd lib && cargo +1.70 build --no-default-features
run: cargo +1.70 build --no-default-features
working-directory: lib
- name: cd lib && cargo +1.47 build --release --no-default-features
run: cargo +1.47 build --release --no-default-features
- name: cd lib && cargo +1.70 build --release --no-default-features
run: cargo +1.70 build --release --no-default-features
working-directory: lib
- name: cd lib/macro/internal && cargo +1.47 build
run: cargo +1.47 build
- name: cd lib/macro/internal && cargo +1.70 build
run: cargo +1.70 build
working-directory: lib/macro/internal
- name: cd lib/macro/internal && cargo +1.47 build --release
run: cargo +1.47 build --release
- name: cd lib/macro/internal && cargo +1.70 build --release
run: cargo +1.70 build --release
working-directory: lib/macro/internal
- name: cd lib/macro && cargo +1.47 build
run: cargo +1.47 build
- name: cd lib/macro && cargo +1.70 build
run: cargo +1.70 build
working-directory: lib/macro
- name: cd lib/macro && cargo +1.47 build --release
run: cargo +1.47 build --release
- name: cd lib/macro && cargo +1.70 build --release
run: cargo +1.70 build --release
working-directory: lib/macro
2 changes: 1 addition & 1 deletion bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ name = "data-encoding"
path = "src/main.rs"

[dependencies]
data-encoding = { version = "2.4.1-git", path = "../lib" }
data-encoding = { version = "2.5.0-git", path = "../lib" }
getopts = "0.2"
6 changes: 5 additions & 1 deletion lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

## 2.4.1-git
## 2.5.0-git

### Minor

- Bump MSRV from 1.47 to 1.70

### Patch

Expand Down
4 changes: 2 additions & 2 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "data-encoding"
version = "2.4.1-git"
version = "2.5.0-git"
authors = ["Julien Cretin <[email protected]>"]
license = "MIT"
edition = "2018"
rust-version = "1.47"
rust-version = "1.70"
keywords = ["no_std", "base64", "base32", "hex"]
categories = ["encoding", "no-std"]
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions lib/macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.14-git"
authors = ["Julien Cretin <[email protected]>"]
license = "MIT"
edition = "2018"
rust-version = "1.47"
rust-version = "1.70"
keywords = ["no_std", "base64", "base32", "hex", "macro"]
categories = ["encoding", "no-std"]
readme = "README.md"
Expand All @@ -14,5 +14,5 @@ description = "Macros for data-encoding"
include = ["Cargo.toml", "LICENSE", "README.md", "src/lib.rs"]

[dependencies]
data-encoding = { version = "2.4.1-git", path = "..", default-features = false }
data-encoding = { version = "2.5.0-git", path = "..", default-features = false }
data-encoding-macro-internal = { version = "0.1.12-git", path = "internal" }
20 changes: 11 additions & 9 deletions lib/macro/internal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.12-git"
authors = ["Julien Cretin <[email protected]>"]
license = "MIT"
edition = "2018"
rust-version = "1.47"
rust-version = "1.70"
description = "Internal library for data-encoding-macro"
readme = "README.md"
repository = "https://github.com/ia0/data-encoding"
Expand All @@ -13,11 +13,13 @@ include = ["Cargo.toml", "LICENSE", "README.md", "src/lib.rs"]
[lib]
proc-macro = true

[dependencies]
data-encoding = { version = "2.4.1-git", path = "../..", default-features = false, features = [
"alloc",
] }
syn = { version = "1", default-features = false, features = [
"parsing",
"proc-macro",
] }
[dependencies.data-encoding]
version = "2.5.0-git"
path = "../.."
default-features = false
features = ["alloc"]

[dependencies.syn]
version = "1"
default-features = false
features = ["parsing", "proc-macro"]
1 change: 1 addition & 0 deletions nostd/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![no_std]
#![no_main]
#![allow(internal_features)]
#![feature(lang_items)]

use core::fmt::Write;
Expand Down
2 changes: 1 addition & 1 deletion xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ enum Toolchain {
#[strum(serialize = "stable")]
Stable,

#[strum(serialize = "1.47")]
#[strum(serialize = "1.70")]
Msrv,
}

Expand Down

0 comments on commit 6e5aa43

Please sign in to comment.