diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index 8ce2ead..29a997b 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f with: - channel: '1.74.0' + channel: '1.85.0' - run: sudo apt-get install libpam0g-dev - run: cargo test --all-features - run: cargo test --no-default-features @@ -45,7 +45,7 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f with: - channel: '1.74.0' + channel: '1.85.0' bins: cargo-deny - run: sudo apt-get install libpam0g-dev - run: cargo deny --all-features check licenses diff --git a/Cargo.toml b/Cargo.toml index 3aed9f1..dd87e85 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,8 @@ homepage = "https://github.com/shell-pool/shpool_pty" license = "MIT" description = "Fork with new pseudo-terminal (PTY)" keywords = ["pty", "tty", "pseudo", "terminal", "fork"] +edition = "2024" +rust-version = "1.85" [features] default = [] diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..5ce4b2d --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,4 @@ +[toolchain] +channel = "1.85.0" +components = ["rust-docs", "rust-src", "rust-analyzer"] +profile = "minimal" diff --git a/src/fork.rs b/src/fork.rs index c0ea26f..e07218b 100644 --- a/src/fork.rs +++ b/src/fork.rs @@ -152,7 +152,7 @@ impl Fork { /// The constructor function `from_ptmx` forks the program /// and returns the current pid for a default PTMX's path. pub fn from_ptmx() -> Result { - Fork::new(::DEFAULT_PTMX) + Fork::new(crate::DEFAULT_PTMX) } /// Waits until it's terminated.