Skip to content

Commit afa3edf

Browse files
committed
Deprecates fixed-width integer type aliases
Closes #1304 .
1 parent a086526 commit afa3edf

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/fixed_width_ints.rs

+32
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,43 @@
22
//!
33
//! These aliases are deprecated: use the Rust types instead.
44
5+
#[deprecated(
6+
since = "0.2.55",
7+
note = "Use i8 instead."
8+
)]
59
pub type int8_t = i8;
10+
#[deprecated(
11+
since = "0.2.55",
12+
note = "Use i16 instead."
13+
)]
614
pub type int16_t = i16;
15+
#[deprecated(
16+
since = "0.2.55",
17+
note = "Use i32 instead."
18+
)]
719
pub type int32_t = i32;
20+
#[deprecated(
21+
since = "0.2.55",
22+
note = "Use i64 instead."
23+
)]
824
pub type int64_t = i64;
25+
#[deprecated(
26+
since = "0.2.55",
27+
note = "Use u8 instead."
28+
)]
929
pub type uint8_t = u8;
30+
#[deprecated(
31+
since = "0.2.55",
32+
note = "Use u16 instead."
33+
)]
1034
pub type uint16_t = u16;
35+
#[deprecated(
36+
since = "0.2.55",
37+
note = "Use u32 instead."
38+
)]
1139
pub type uint32_t = u32;
40+
#[deprecated(
41+
since = "0.2.55",
42+
note = "Use u64 instead."
43+
)]
1244
pub type uint64_t = u64;

0 commit comments

Comments
 (0)