Skip to content

Commit 1caefaf

Browse files
committed
chore: bump edition to 2024 and MSRV to 1.85
This matches the MSRV for the main shpool project and updates the edition to 2024.
1 parent 04942df commit 1caefaf

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/presubmit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
1010
- uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f
1111
with:
12-
channel: '1.74.0'
12+
channel: '1.85.0'
1313
- run: sudo apt-get install libpam0g-dev
1414
- run: cargo test --all-features
1515
- run: cargo test --no-default-features
@@ -45,7 +45,7 @@ jobs:
4545
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
4646
- uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f
4747
with:
48-
channel: '1.74.0'
48+
channel: '1.85.0'
4949
bins: cargo-deny
5050
- run: sudo apt-get install libpam0g-dev
5151
- run: cargo deny --all-features check licenses

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ homepage = "https://github.com/shell-pool/shpool_pty"
77
license = "MIT"
88
description = "Fork with new pseudo-terminal (PTY)"
99
keywords = ["pty", "tty", "pseudo", "terminal", "fork"]
10+
edition = "2024"
11+
rust-version = "1.85"
1012

1113
[features]
1214
default = []

rust-toolchain.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[toolchain]
2+
channel = "1.85.0"
3+
components = ["rust-docs", "rust-src", "rust-analyzer"]
4+
profile = "minimal"

src/fork.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl Fork {
152152
/// The constructor function `from_ptmx` forks the program
153153
/// and returns the current pid for a default PTMX's path.
154154
pub fn from_ptmx() -> Result<Self> {
155-
Fork::new(::DEFAULT_PTMX)
155+
Fork::new(crate::DEFAULT_PTMX)
156156
}
157157

158158
/// Waits until it's terminated.

0 commit comments

Comments
 (0)