Skip to content

Commit

Permalink
Drop pre-1.36 rust support (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien authored Jul 21, 2024
1 parent 8daecb0 commit 480a373
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
7 changes: 0 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,9 @@ categories = ["command-line-interface"]
edition = "2021"
rust-version = "1.63"

[badges]
circle-ci = { repository = "Stebalien/term" }
appveyor = { repository = "Stebalien/term" }

[dependencies]
home = "0.5.5"

[target.'cfg(windows)'.dependencies]
rustversion = "1"


[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.52.0"
features = [
Expand Down
10 changes: 0 additions & 10 deletions src/win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,6 @@ fn test_conout() {
assert!(conout().is_ok())
}

#[rustversion::before(1.36)]
unsafe fn get_console_screen_buffer_info(handle: HANDLE) -> io::Result<CONSOLE_SCREEN_BUFFER_INFO> {
let mut buffer_info = ::std::mem::uninitialized();
if GetConsoleScreenBufferInfo(handle, &mut buffer_info) == 0 {
Err(io::Error::last_os_error())
} else {
Ok(buffer_info)
}
}
#[rustversion::since(1.36)]
unsafe fn get_console_screen_buffer_info(handle: HANDLE) -> io::Result<CONSOLE_SCREEN_BUFFER_INFO> {
let mut buffer_info = ::std::mem::MaybeUninit::uninit();
if GetConsoleScreenBufferInfo(handle, buffer_info.as_mut_ptr()) == 0 {
Expand Down

0 comments on commit 480a373

Please sign in to comment.