# 棄用 API

依「從哪個版本開始棄用」列出標準庫中所有標記為 `#[deprecated]` 的穩定 API；棄用的 API 仍可編譯（會出現警告），但官方建議改用說明中的替代做法，本書範例一律不使用。

棄用版本取自官方文件標示的「Deprecated since」；尚未決定版本（`TBD`，未來才會棄用）的 API 不列入。

## Rust 1.99

[Rust 1.99 版本頁](/rust-1-99)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std` | [`i128::max_value`](https://doc.rust-lang.org/std/primitive.i128.html#method.max_value) | replaced by the MAX associated constant on this type |
| `std` | [`i128::min_value`](https://doc.rust-lang.org/std/primitive.i128.html#method.min_value) | replaced by the MIN associated constant on this type |
| `std` | [`i16::max_value`](https://doc.rust-lang.org/std/primitive.i16.html#method.max_value) | replaced by the MAX associated constant on this type |
| `std` | [`i16::min_value`](https://doc.rust-lang.org/std/primitive.i16.html#method.min_value) | replaced by the MIN associated constant on this type |
| `std` | [`i32::max_value`](https://doc.rust-lang.org/std/primitive.i32.html#method.max_value) | replaced by the MAX associated constant on this type |
| `std` | [`i32::min_value`](https://doc.rust-lang.org/std/primitive.i32.html#method.min_value) | replaced by the MIN associated constant on this type |
| `std` | [`i64::max_value`](https://doc.rust-lang.org/std/primitive.i64.html#method.max_value) | replaced by the MAX associated constant on this type |
| `std` | [`i64::min_value`](https://doc.rust-lang.org/std/primitive.i64.html#method.min_value) | replaced by the MIN associated constant on this type |
| `std` | [`i8::max_value`](https://doc.rust-lang.org/std/primitive.i8.html#method.max_value) | replaced by the MAX associated constant on this type |
| `std` | [`i8::min_value`](https://doc.rust-lang.org/std/primitive.i8.html#method.min_value) | replaced by the MIN associated constant on this type |
| `std` | [`isize::max_value`](https://doc.rust-lang.org/std/primitive.isize.html#method.max_value) | replaced by the MAX associated constant on this type |
| `std` | [`isize::min_value`](https://doc.rust-lang.org/std/primitive.isize.html#method.min_value) | replaced by the MIN associated constant on this type |
| `std` | [`u128::max_value`](https://doc.rust-lang.org/std/primitive.u128.html#method.max_value) | replaced by the MAX associated constant on this type |
| `std` | [`u128::min_value`](https://doc.rust-lang.org/std/primitive.u128.html#method.min_value) | replaced by the MIN associated constant on this type |
| `std` | [`u16::max_value`](https://doc.rust-lang.org/std/primitive.u16.html#method.max_value) | replaced by the MAX associated constant on this type |
| `std` | [`u16::min_value`](https://doc.rust-lang.org/std/primitive.u16.html#method.min_value) | replaced by the MIN associated constant on this type |
| `std` | [`u32::max_value`](https://doc.rust-lang.org/std/primitive.u32.html#method.max_value) | replaced by the MAX associated constant on this type |
| `std` | [`u32::min_value`](https://doc.rust-lang.org/std/primitive.u32.html#method.min_value) | replaced by the MIN associated constant on this type |
| `std` | [`u64::max_value`](https://doc.rust-lang.org/std/primitive.u64.html#method.max_value) | replaced by the MAX associated constant on this type |
| `std` | [`u64::min_value`](https://doc.rust-lang.org/std/primitive.u64.html#method.min_value) | replaced by the MIN associated constant on this type |
| `std` | [`u8::max_value`](https://doc.rust-lang.org/std/primitive.u8.html#method.max_value) | replaced by the MAX associated constant on this type |
| `std` | [`u8::min_value`](https://doc.rust-lang.org/std/primitive.u8.html#method.min_value) | replaced by the MIN associated constant on this type |
| `std` | [`usize::max_value`](https://doc.rust-lang.org/std/primitive.usize.html#method.max_value) | replaced by the MAX associated constant on this type |
| `std` | [`usize::min_value`](https://doc.rust-lang.org/std/primitive.usize.html#method.min_value) | replaced by the MIN associated constant on this type |
| `std::f32` | [`DIGITS`](https://doc.rust-lang.org/std/f32/constant.DIGITS.html) | replaced by the DIGITS associated constant on f32 |
| `std::f32` | [`EPSILON`](https://doc.rust-lang.org/std/f32/constant.EPSILON.html) | replaced by the EPSILON associated constant on f32 |
| `std::f32` | [`INFINITY`](https://doc.rust-lang.org/std/f32/constant.INFINITY.html) | replaced by the INFINITY associated constant on f32 |
| `std::f32` | [`MANTISSA_DIGITS`](https://doc.rust-lang.org/std/f32/constant.MANTISSA_DIGITS.html) | replaced by the MANTISSA_DIGITS associated constant on f32 |
| `std::f32` | [`MAX`](https://doc.rust-lang.org/std/f32/constant.MAX.html) | replaced by the MAX associated constant on f32 |
| `std::f32` | [`MAX_10_EXP`](https://doc.rust-lang.org/std/f32/constant.MAX_10_EXP.html) | replaced by the MAX_10_EXP associated constant on f32 |
| `std::f32` | [`MAX_EXP`](https://doc.rust-lang.org/std/f32/constant.MAX_EXP.html) | replaced by the MAX_EXP associated constant on f32 |
| `std::f32` | [`MIN`](https://doc.rust-lang.org/std/f32/constant.MIN.html) | replaced by the MIN associated constant on f32 |
| `std::f32` | [`MIN_10_EXP`](https://doc.rust-lang.org/std/f32/constant.MIN_10_EXP.html) | replaced by the MIN_10_EXP associated constant on f32 |
| `std::f32` | [`MIN_EXP`](https://doc.rust-lang.org/std/f32/constant.MIN_EXP.html) | replaced by the MIN_EXP associated constant on f32 |
| `std::f32` | [`MIN_POSITIVE`](https://doc.rust-lang.org/std/f32/constant.MIN_POSITIVE.html) | replaced by the MIN_POSITIVE associated constant on f32 |
| `std::f32` | [`NAN`](https://doc.rust-lang.org/std/f32/constant.NAN.html) | replaced by the NAN associated constant on f32 |
| `std::f32` | [`NEG_INFINITY`](https://doc.rust-lang.org/std/f32/constant.NEG_INFINITY.html) | replaced by the NEG_INFINITY associated constant on f32 |
| `std::f32` | [`RADIX`](https://doc.rust-lang.org/std/f32/constant.RADIX.html) | replaced by the RADIX associated constant on f32 |
| `std::f64` | [`DIGITS`](https://doc.rust-lang.org/std/f64/constant.DIGITS.html) | replaced by the DIGITS associated constant on f64 |
| `std::f64` | [`EPSILON`](https://doc.rust-lang.org/std/f64/constant.EPSILON.html) | replaced by the EPSILON associated constant on f64 |
| `std::f64` | [`INFINITY`](https://doc.rust-lang.org/std/f64/constant.INFINITY.html) | replaced by the INFINITY associated constant on f64 |
| `std::f64` | [`MANTISSA_DIGITS`](https://doc.rust-lang.org/std/f64/constant.MANTISSA_DIGITS.html) | replaced by the MANTISSA_DIGITS associated constant on f64 |
| `std::f64` | [`MAX`](https://doc.rust-lang.org/std/f64/constant.MAX.html) | replaced by the MAX associated constant on f64 |
| `std::f64` | [`MAX_10_EXP`](https://doc.rust-lang.org/std/f64/constant.MAX_10_EXP.html) | replaced by the MAX_10_EXP associated constant on f64 |
| `std::f64` | [`MAX_EXP`](https://doc.rust-lang.org/std/f64/constant.MAX_EXP.html) | replaced by the MAX_EXP associated constant on f64 |
| `std::f64` | [`MIN`](https://doc.rust-lang.org/std/f64/constant.MIN.html) | replaced by the MIN associated constant on f64 |
| `std::f64` | [`MIN_10_EXP`](https://doc.rust-lang.org/std/f64/constant.MIN_10_EXP.html) | replaced by the MIN_10_EXP associated constant on f64 |
| `std::f64` | [`MIN_EXP`](https://doc.rust-lang.org/std/f64/constant.MIN_EXP.html) | replaced by the MIN_EXP associated constant on f64 |
| `std::f64` | [`MIN_POSITIVE`](https://doc.rust-lang.org/std/f64/constant.MIN_POSITIVE.html) | replaced by the MIN_POSITIVE associated constant on f64 |
| `std::f64` | [`NAN`](https://doc.rust-lang.org/std/f64/constant.NAN.html) | replaced by the NAN associated constant on f64 |
| `std::f64` | [`NEG_INFINITY`](https://doc.rust-lang.org/std/f64/constant.NEG_INFINITY.html) | replaced by the NEG_INFINITY associated constant on f64 |
| `std::f64` | [`RADIX`](https://doc.rust-lang.org/std/f64/constant.RADIX.html) | replaced by the RADIX associated constant on f64 |
| `std::i128` | [`MAX`](https://doc.rust-lang.org/std/i128/constant.MAX.html) | replaced by the MAX associated constant on this type |
| `std::i128` | [`MIN`](https://doc.rust-lang.org/std/i128/constant.MIN.html) | replaced by the MIN associated constant on this type |
| `std::i16` | [`MAX`](https://doc.rust-lang.org/std/i16/constant.MAX.html) | replaced by the MAX associated constant on this type |
| `std::i16` | [`MIN`](https://doc.rust-lang.org/std/i16/constant.MIN.html) | replaced by the MIN associated constant on this type |
| `std::i32` | [`MAX`](https://doc.rust-lang.org/std/i32/constant.MAX.html) | replaced by the MAX associated constant on this type |
| `std::i32` | [`MIN`](https://doc.rust-lang.org/std/i32/constant.MIN.html) | replaced by the MIN associated constant on this type |
| `std::i64` | [`MAX`](https://doc.rust-lang.org/std/i64/constant.MAX.html) | replaced by the MAX associated constant on this type |
| `std::i64` | [`MIN`](https://doc.rust-lang.org/std/i64/constant.MIN.html) | replaced by the MIN associated constant on this type |
| `std::i8` | [`MAX`](https://doc.rust-lang.org/std/i8/constant.MAX.html) | replaced by the MAX associated constant on this type |
| `std::i8` | [`MIN`](https://doc.rust-lang.org/std/i8/constant.MIN.html) | replaced by the MIN associated constant on this type |
| `std::isize` | [`MAX`](https://doc.rust-lang.org/std/isize/constant.MAX.html) | replaced by the MAX associated constant on this type |
| `std::isize` | [`MIN`](https://doc.rust-lang.org/std/isize/constant.MIN.html) | replaced by the MIN associated constant on this type |
| `std::sync::atomic` | [`Atomic::fetch_update`](https://doc.rust-lang.org/std/sync/atomic/struct.Atomic.html#method.fetch_update) | renamed to try_update for consistency |
| `std::u128` | [`MAX`](https://doc.rust-lang.org/std/u128/constant.MAX.html) | replaced by the MAX associated constant on this type |
| `std::u128` | [`MIN`](https://doc.rust-lang.org/std/u128/constant.MIN.html) | replaced by the MIN associated constant on this type |
| `std::u16` | [`MAX`](https://doc.rust-lang.org/std/u16/constant.MAX.html) | replaced by the MAX associated constant on this type |
| `std::u16` | [`MIN`](https://doc.rust-lang.org/std/u16/constant.MIN.html) | replaced by the MIN associated constant on this type |
| `std::u32` | [`MAX`](https://doc.rust-lang.org/std/u32/constant.MAX.html) | replaced by the MAX associated constant on this type |
| `std::u32` | [`MIN`](https://doc.rust-lang.org/std/u32/constant.MIN.html) | replaced by the MIN associated constant on this type |
| `std::u64` | [`MAX`](https://doc.rust-lang.org/std/u64/constant.MAX.html) | replaced by the MAX associated constant on this type |
| `std::u64` | [`MIN`](https://doc.rust-lang.org/std/u64/constant.MIN.html) | replaced by the MIN associated constant on this type |
| `std::u8` | [`MAX`](https://doc.rust-lang.org/std/u8/constant.MAX.html) | replaced by the MAX associated constant on this type |
| `std::u8` | [`MIN`](https://doc.rust-lang.org/std/u8/constant.MIN.html) | replaced by the MIN associated constant on this type |
| `std::usize` | [`MAX`](https://doc.rust-lang.org/std/usize/constant.MAX.html) | replaced by the MAX associated constant on this type |
| `std::usize` | [`MIN`](https://doc.rust-lang.org/std/usize/constant.MIN.html) | replaced by the MIN associated constant on this type |

## Rust 1.82

[Rust 1.82 版本頁](/rust-1-82)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::panic` | [`PanicInfo`](https://doc.rust-lang.org/std/panic/type.PanicInfo.html) | use PanicHookInfo instead |

## Rust 1.59

[Rust 1.59 版本頁](/rust-1-59)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::array` | [`IntoIter::new`](https://doc.rust-lang.org/std/array/struct.IntoIter.html#method.new) | use IntoIterator::into_iter instead |

## Rust 1.52

[Rust 1.52 版本頁](/rust-1-52)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::alloc` | [`LayoutErr`](https://doc.rust-lang.org/std/alloc/type.LayoutErr.html) | Name does not follow std convention, use LayoutError |

## Rust 1.51

[Rust 1.51 版本頁](/rust-1-51)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::sync::atomic` | [`spin_loop_hint`](https://doc.rust-lang.org/std/sync/atomic/fn.spin_loop_hint.html) | use hint::spin_loop instead |

## Rust 1.50

[Rust 1.50 版本頁](/rust-1-50)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::sync::atomic` | [`Atomic::compare_and_swap`](https://doc.rust-lang.org/std/sync/atomic/struct.Atomic.html#method.compare_and_swap) | Use compare_exchange or compare_exchange_weak instead |

## Rust 1.42

[Rust 1.42 版本頁](/rust-1-42)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::error` | [`Error::description`](https://doc.rust-lang.org/std/error/trait.Error.html#method.description) | use the Display impl or to_string() |

## Rust 1.39

[Rust 1.39 版本頁](/rust-1-39)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std` | [`try!`](https://doc.rust-lang.org/std/macro.try.html) | use the ? operator instead |
| `std::mem` | [`uninitialized`](https://doc.rust-lang.org/std/mem/fn.uninitialized.html) | use mem::MaybeUninit instead |

## Rust 1.38

[Rust 1.38 版本頁](/rust-1-38)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::sync` | [`ONCE_INIT`](https://doc.rust-lang.org/std/sync/constant.ONCE_INIT.html) | the Once::new() function is now preferred |

## Rust 1.37

[Rust 1.37 版本頁](/rust-1-37)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::os::unix::process` | [`CommandExt::before_exec`](https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#method.before_exec) | should be unsafe, use pre_exec instead |

## Rust 1.34

[Rust 1.34 版本頁](/rust-1-34)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::sync::atomic` | [`ATOMIC_BOOL_INIT`](https://doc.rust-lang.org/std/sync/atomic/constant.ATOMIC_BOOL_INIT.html) | the new function is now preferred |
| `std::sync::atomic` | [`ATOMIC_ISIZE_INIT`](https://doc.rust-lang.org/std/sync/atomic/constant.ATOMIC_ISIZE_INIT.html) | the new function is now preferred |
| `std::sync::atomic` | [`ATOMIC_USIZE_INIT`](https://doc.rust-lang.org/std/sync/atomic/constant.ATOMIC_USIZE_INIT.html) | the new function is now preferred |

## Rust 1.33

[Rust 1.33 版本頁](/rust-1-33)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std` | [`str::trim_left`](https://doc.rust-lang.org/std/primitive.str.html#method.trim_left) | superseded by trim_start |
| `std` | [`str::trim_left_matches`](https://doc.rust-lang.org/std/primitive.str.html#method.trim_left_matches) | superseded by trim_start_matches |
| `std` | [`str::trim_right`](https://doc.rust-lang.org/std/primitive.str.html#method.trim_right) | superseded by trim_end |
| `std` | [`str::trim_right_matches`](https://doc.rust-lang.org/std/primitive.str.html#method.trim_right_matches) | superseded by trim_end_matches |
| `std::error` | [`Error::cause`](https://doc.rust-lang.org/std/error/trait.Error.html#method.cause) | replaced by Error::source, which can support downcasting |
| `std::string` | [`String::trim_left`](https://doc.rust-lang.org/std/string/struct.String.html#method.trim_left) | superseded by trim_start |
| `std::string` | [`String::trim_left_matches`](https://doc.rust-lang.org/std/string/struct.String.html#method.trim_left_matches) | superseded by trim_start_matches |
| `std::string` | [`String::trim_right`](https://doc.rust-lang.org/std/string/struct.String.html#method.trim_right) | superseded by trim_end |
| `std::string` | [`String::trim_right_matches`](https://doc.rust-lang.org/std/string/struct.String.html#method.trim_right_matches) | superseded by trim_end_matches |

## Rust 1.29

[Rust 1.29 版本頁](/rust-1-29)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std` | [`str::slice_mut_unchecked`](https://doc.rust-lang.org/std/primitive.str.html#method.slice_mut_unchecked) | use get_unchecked_mut(begin..end) instead |
| `std` | [`str::slice_unchecked`](https://doc.rust-lang.org/std/primitive.str.html#method.slice_unchecked) | use get_unchecked(begin..end) instead |
| `std::string` | [`String::slice_mut_unchecked`](https://doc.rust-lang.org/std/string/struct.String.html#method.slice_mut_unchecked) | use get_unchecked_mut(begin..end) instead |
| `std::string` | [`String::slice_unchecked`](https://doc.rust-lang.org/std/string/struct.String.html#method.slice_unchecked) | use get_unchecked(begin..end) instead |

## Rust 1.26

[Rust 1.26 版本頁](/rust-1-26)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::ascii` | [`AsciiExt`](https://doc.rust-lang.org/std/ascii/trait.AsciiExt.html) | use inherent methods instead |
| `std::ascii` | [`AsciiExt::eq_ignore_ascii_case`](https://doc.rust-lang.org/std/ascii/trait.AsciiExt.html#tymethod.eq_ignore_ascii_case) | use inherent methods instead |
| `std::ascii` | [`AsciiExt::is_ascii`](https://doc.rust-lang.org/std/ascii/trait.AsciiExt.html#tymethod.is_ascii) | use inherent methods instead |
| `std::ascii` | [`AsciiExt::make_ascii_lowercase`](https://doc.rust-lang.org/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_lowercase) | use inherent methods instead |
| `std::ascii` | [`AsciiExt::make_ascii_uppercase`](https://doc.rust-lang.org/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_uppercase) | use inherent methods instead |
| `std::ascii` | [`AsciiExt::Owned`](https://doc.rust-lang.org/std/ascii/trait.AsciiExt.html#associatedtype.Owned) | use inherent methods instead |
| `std::ascii` | [`AsciiExt::to_ascii_lowercase`](https://doc.rust-lang.org/std/ascii/trait.AsciiExt.html#tymethod.to_ascii_lowercase) | use inherent methods instead |
| `std::ascii` | [`AsciiExt::to_ascii_uppercase`](https://doc.rust-lang.org/std/ascii/trait.AsciiExt.html#tymethod.to_ascii_uppercase) | use inherent methods instead |

## Rust 1.24

[Rust 1.24 版本頁](/rust-1-24)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::fmt` | [`Formatter::flags`](https://doc.rust-lang.org/std/fmt/struct.Formatter.html#method.flags) | use the sign_plus, sign_minus, alternate, or sign_aware_zero_pad methods instead |

## Rust 1.16

[Rust 1.16 版本頁](/rust-1-16)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::net` | [`TcpListener::only_v6`](https://doc.rust-lang.org/std/net/struct.TcpListener.html#method.only_v6) | this option can only be set before the socket is bound |
| `std::net` | [`TcpListener::set_only_v6`](https://doc.rust-lang.org/std/net/struct.TcpListener.html#method.set_only_v6) | this option can only be set before the socket is bound |

## Rust 1.13

[Rust 1.13 版本頁](/rust-1-13)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::hash` | [`SipHasher`](https://doc.rust-lang.org/std/hash/struct.SipHasher.html) | use std::hash::DefaultHasher instead |
| `std::hash` | [`SipHasher::new`](https://doc.rust-lang.org/std/hash/struct.SipHasher.html#method.new) | use std::hash::DefaultHasher instead |
| `std::hash` | [`SipHasher::new_with_keys`](https://doc.rust-lang.org/std/hash/struct.SipHasher.html#method.new_with_keys) | use std::hash::DefaultHasher instead |

## Rust 1.10

[Rust 1.10 版本頁](/rust-1-10)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std` | [`f32::abs_sub`](https://doc.rust-lang.org/std/primitive.f32.html#method.abs_sub) | you probably meant (self - other).abs(): this operation is (self - other).max(0.0) except that abs_sub also propagates NaNs (also known as fdimf in C). If you truly need the positive difference, consider using that expression or the C function fdimf, depending on how you wish to handle NaN (please consider filing an issue describing your use-case too). |
| `std` | [`f64::abs_sub`](https://doc.rust-lang.org/std/primitive.f64.html#method.abs_sub) | you probably meant (self - other).abs(): this operation is (self - other).max(0.0) except that abs_sub also propagates NaNs (also known as fdim in C). If you truly need the positive difference, consider using that expression or the C function fdim, depending on how you wish to handle NaN (please consider filing an issue describing your use-case too). |

## Rust 1.8

[Rust 1.8 版本頁](/rust-1-8)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::os::darwin::fs` | [`MetadataExt::as_raw_stat`](https://doc.rust-lang.org/std/os/darwin/fs/trait.MetadataExt.html#tymethod.as_raw_stat) | deprecated in favor of the accessor methods of this trait |
| `std::os::linux::fs` | [`MetadataExt::as_raw_stat`](https://doc.rust-lang.org/std/os/linux/fs/trait.MetadataExt.html#tymethod.as_raw_stat) | other methods of this trait are now preferred |
| `std::os::linux::raw` | [`blkcnt_t`](https://doc.rust-lang.org/std/os/linux/raw/type.blkcnt_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::linux::raw` | [`blksize_t`](https://doc.rust-lang.org/std/os/linux/raw/type.blksize_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::linux::raw` | [`dev_t`](https://doc.rust-lang.org/std/os/linux/raw/type.dev_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::linux::raw` | [`ino_t`](https://doc.rust-lang.org/std/os/linux/raw/type.ino_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::linux::raw` | [`mode_t`](https://doc.rust-lang.org/std/os/linux/raw/type.mode_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::linux::raw` | [`nlink_t`](https://doc.rust-lang.org/std/os/linux/raw/type.nlink_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::linux::raw` | [`off_t`](https://doc.rust-lang.org/std/os/linux/raw/type.off_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::linux::raw` | [`pthread_t`](https://doc.rust-lang.org/std/os/linux/raw/type.pthread_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::linux::raw` | [`stat`](https://doc.rust-lang.org/std/os/linux/raw/struct.stat.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::linux::raw` | [`time_t`](https://doc.rust-lang.org/std/os/linux/raw/type.time_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::unix::raw` | [`blkcnt_t`](https://doc.rust-lang.org/std/os/unix/raw/type.blkcnt_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::unix::raw` | [`blksize_t`](https://doc.rust-lang.org/std/os/unix/raw/type.blksize_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::unix::raw` | [`dev_t`](https://doc.rust-lang.org/std/os/unix/raw/type.dev_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::unix::raw` | [`gid_t`](https://doc.rust-lang.org/std/os/unix/raw/type.gid_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::unix::raw` | [`ino_t`](https://doc.rust-lang.org/std/os/unix/raw/type.ino_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::unix::raw` | [`mode_t`](https://doc.rust-lang.org/std/os/unix/raw/type.mode_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::unix::raw` | [`nlink_t`](https://doc.rust-lang.org/std/os/unix/raw/type.nlink_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::unix::raw` | [`off_t`](https://doc.rust-lang.org/std/os/unix/raw/type.off_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::unix::raw` | [`pid_t`](https://doc.rust-lang.org/std/os/unix/raw/type.pid_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::unix::raw` | [`pthread_t`](https://doc.rust-lang.org/std/os/unix/raw/type.pthread_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::unix::raw` | [`time_t`](https://doc.rust-lang.org/std/os/unix/raw/type.time_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |
| `std::os::unix::raw` | [`uid_t`](https://doc.rust-lang.org/std/os/unix/raw/type.uid_t.html) | these type aliases are no longer supported by the standard library, the libc crate on crates.io should be used instead for the correct definitions |

## Rust 1.6

[Rust 1.6 版本頁](/rust-1-6)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::sync` | [`Condvar::wait_timeout_ms`](https://doc.rust-lang.org/std/sync/struct.Condvar.html#method.wait_timeout_ms) | replaced by std::sync::Condvar::wait_timeout |
| `std::sync::poison` | [`Condvar::wait_timeout_ms`](https://doc.rust-lang.org/std/sync/poison/struct.Condvar.html#method.wait_timeout_ms) | replaced by std::sync::Condvar::wait_timeout |
| `std::thread` | [`park_timeout_ms`](https://doc.rust-lang.org/std/thread/fn.park_timeout_ms.html) | replaced by std::thread::park_timeout |
| `std::thread` | [`sleep_ms`](https://doc.rust-lang.org/std/thread/fn.sleep_ms.html) | replaced by std::thread::sleep |

## Rust 1.4

[Rust 1.4 版本頁](/rust-1-4)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std` | [`str::lines_any`](https://doc.rust-lang.org/std/primitive.str.html#method.lines_any) | use lines() instead now |
| `std::str` | [`LinesAny`](https://doc.rust-lang.org/std/str/struct.LinesAny.html) | use lines()/Lines instead now |
| `std::string` | [`String::lines_any`](https://doc.rust-lang.org/std/string/struct.String.html#method.lines_any) | use lines() instead now |

## Rust 1.3

[Rust 1.3 版本頁](/rust-1-3)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std` | [`slice::connect`](https://doc.rust-lang.org/std/primitive.slice.html#method.connect) | renamed to join |
| `std::bstr` | [`ByteStr::connect`](https://doc.rust-lang.org/std/bstr/struct.ByteStr.html#method.connect) | renamed to join |
| `std::bstr` | [`ByteString::connect`](https://doc.rust-lang.org/std/bstr/struct.ByteString.html#method.connect) | renamed to join |
| `std::io` | [`IoSlice::connect`](https://doc.rust-lang.org/std/io/struct.IoSlice.html#method.connect) | renamed to join |
| `std::io` | [`IoSliceMut::connect`](https://doc.rust-lang.org/std/io/struct.IoSliceMut.html#method.connect) | renamed to join |
| `std::vec` | [`Vec::connect`](https://doc.rust-lang.org/std/vec/struct.Vec.html#method.connect) | renamed to join |

## Rust 1.2

[Rust 1.2 版本頁](/rust-1-2)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::mem` | [`min_align_of`](https://doc.rust-lang.org/std/mem/fn.min_align_of.html) | use align_of instead |
| `std::mem` | [`min_align_of_val`](https://doc.rust-lang.org/std/mem/fn.min_align_of_val.html) | use align_of_val instead |

## Rust 1.1

[Rust 1.1 版本頁](/rust-1-1)

| 模組 | 項目 | 官方說明 |
| --- | --- | --- |
| `std::fs` | [`soft_link`](https://doc.rust-lang.org/std/fs/fn.soft_link.html) | replaced with std::os::unix::fs::symlink and std::os::windows::fs::{symlink_file, symlink_dir} |

## 資料來源

- [Rust 標準庫文件](https://doc.rust-lang.org/std/)（各 API 的 Deprecated since 標示，取自 rust-docs 元件 1.100.0）
- [Rust 發版紀錄（RELEASES.md）](https://doc.rust-lang.org/stable/releases.html)
