Skip to content

Commit 504356b

Browse files
committed
ci: build all branches
bump msrv to 1.56 as windows-sys required
1 parent e19b286 commit 504356b

File tree

6 files changed

+120
-30
lines changed

6 files changed

+120
-30
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Rust
33
on:
44
push:
55
branches:
6-
- 'master'
6+
- '*'
77
- '!gh-pages'
88
pull_request:
99

@@ -40,6 +40,7 @@ jobs:
4040
shell: bash
4141
if: matrix.mingw_dir
4242
- run: cargo build
43+
- run: cargo build --features nightly
4344
- run: cargo build --all-targets
4445
- run: cargo test
4546
- run: cargo test --no-default-features
@@ -68,7 +69,7 @@ jobs:
6869
env:
6970
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
7071
# add_of_mut! requires for soundness
71-
MSRV: 1.51.0
72+
MSRV: 1.56.0
7273
steps:
7374
- uses: actions/checkout@v3
7475
- run: |
@@ -78,9 +79,7 @@ jobs:
7879
rustup run stable cargo generate-lockfile
7980
rustup run stable cargo fetch
8081
- run: |
81-
cargo build --all-targets --locked
82-
- run: |
83-
cargo test
82+
cargo build --locked
8483
8584
rustfmt:
8685
runs-on: ubuntu-latest

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525
* `Fixed` for any bug fixes.
2626
* `Security` in case of vulnerabilities.
2727
-->
28+
## [v1.1.0] - 2024-04-30
29+
### Change MSRV from 1.51 to 1.56
30+
31+
windows-sys bump to 1.56 when they switch to 2021 edition.
32+
As a dependent of that crate, we have no choice but to follow.
2833

2934
## [v1.0.0] - 2023-02-26
3035
### First major version
@@ -57,6 +62,7 @@ It signals that the API is mature enough to be stable for a long time.
5762

5863
First release
5964

65+
[v1.0.0]: https://github.com/lzutao/junction/compare/v1.0.0...v1.1.0
6066
[v1.0.0]: https://github.com/lzutao/junction/compare/v0.2.1...v1.0.0
6167
[v0.2.1]: https://github.com/lzutao/junction/compare/v0.2.0...v0.2.1
6268
[v0.2.0]: https://github.com/lzutao/junction/compare/v0.1.0...v0.2.0

Cargo.lock

Lines changed: 99 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "junction"
3-
version = "1.0.0" # Also update `html_root_url` in lib.rs
3+
version = "1.1.0" # Also update `html_root_url` in lib.rs
44
authors = ["Lzu Tao <taolzu@gmail.com>"]
55
categories = ["api-bindings", "os::windows-apis"]
66
documentation = "https://docs.rs/junction/*/x86_64-pc-windows-msvc/junction/"
77
edition = "2018" # edition 2021 released in 1.56.0
8-
rust-version = "1.51"
8+
rust-version = "1.56"
99
exclude = [
1010
"/.github",
1111
"/HOW-TO-RELEASE.md",
@@ -55,4 +55,8 @@ features = [
5555
]
5656

5757
[dev-dependencies]
58-
tempfile = "3"
58+
tempfile = "=3.8.0"
59+
# NOTE: rustix is used by tempfile, to force tempfile use an old version
60+
# of it that is compatible with MSRV.
61+
# MSRV: v0.38.9+ has newer dep:core syntax that old rustc (<1.60) confuses.
62+
rustix = "=0.38.9"

HOW-TO-RELEASE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
7. Create tag and publish to remote
1818

1919
```bash
20-
VER_NUM=v0.x.x
21-
git tag -as ${VER_NUM} -m ${VER_NUM}
20+
VER_NUM=v1.x.x
21+
git tag -as $VER_NUM -m $VER_NUM
2222
git push origin master
23-
git push origin ${VER_NUM}
23+
git push origin $VER_NUM
2424
```

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Quoted from [Computer Hope](https://www.computerhope.com/jargon/j/junction.htm):
2222
2323
### Minimal Supported Rust versions
2424

25-
1.51.0
25+
1.56.0
2626

2727
## All relevant references
2828

0 commit comments

Comments
 (0)