Skip to content

Commit ad67184

Browse files
committed
Try to clarify what's new in 1.64.0 ffi types
1 parent a37499a commit ad67184

File tree

1 file changed

+25
-19
lines changed

1 file changed

+25
-19
lines changed

RELEASES.md

+25-19
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,6 @@ Libraries
4141
Stabilized APIs
4242
---------------
4343

44-
- [`ffi::CStr`](https://doc.rust-lang.org/stable/std/ffi/struct.CStr.html)
45-
- [`ffi::CString`](https://doc.rust-lang.org/stable/std/ffi/struct.CString.html)
46-
- [`ffi::FromBytesWithNulError`](https://doc.rust-lang.org/stable/std/ffi/struct.FromBytesWithNulError.html)
47-
- [`ffi::FromVecWithNulError`](https://doc.rust-lang.org/stable/std/ffi/struct.FromVecWithNulError.html)
48-
- [`ffi::IntoStringError`](https://doc.rust-lang.org/stable/std/ffi/struct.IntoStringError.html)
49-
- [`ffi::NulError`](https://doc.rust-lang.org/stable/std/ffi/struct.NulError.html)
50-
- [`ffi::c_char`](https://doc.rust-lang.org/stable/std/ffi/type.c_char.html)
51-
- [`ffi::c_double`](https://doc.rust-lang.org/stable/std/ffi/type.c_double.html)
52-
- [`ffi::c_float`](https://doc.rust-lang.org/stable/std/ffi/type.c_float.html)
53-
- [`ffi::c_int`](https://doc.rust-lang.org/stable/std/ffi/type.c_int.html)
54-
- [`ffi::c_long`](https://doc.rust-lang.org/stable/std/ffi/type.c_long.html)
55-
- [`ffi::c_longlong`](https://doc.rust-lang.org/stable/std/ffi/type.c_longlong.html)
56-
- [`ffi::c_schar`](https://doc.rust-lang.org/stable/std/ffi/type.c_schar.html)
57-
- [`ffi::c_short`](https://doc.rust-lang.org/stable/std/ffi/type.c_short.html)
58-
- [`ffi::c_uchar`](https://doc.rust-lang.org/stable/std/ffi/type.c_uchar.html)
59-
- [`ffi::c_uint`](https://doc.rust-lang.org/stable/std/ffi/type.c_uint.html)
60-
- [`ffi::c_ulong`](https://doc.rust-lang.org/stable/std/ffi/type.c_ulong.html)
61-
- [`ffi::c_ulonglong`](https://doc.rust-lang.org/stable/std/ffi/type.c_ulonglong.html)
62-
- [`ffi::c_ushort`](https://doc.rust-lang.org/stable/std/ffi/type.c_ushort.html)
6344
- [`future::IntoFuture`](https://doc.rust-lang.org/stable/std/future/trait.IntoFuture.html)
6445
- [`future::poll_fn`](https://doc.rust-lang.org/stable/std/future/fn.poll_fn.html)
6546
- [`task::ready!`](https://doc.rust-lang.org/stable/std/task/macro.ready.html)
@@ -80,6 +61,31 @@ Stabilized APIs
8061
- [`os::windows::fs::FileTypeExt::is_symlink_dir`](https://doc.rust-lang.org/stable/std/os/windows/fs/trait.FileTypeExt.html#tymethod.is_symlink_dir)
8162
- [`os::windows::fs::FileTypeExt::is_symlink_file`](https://doc.rust-lang.org/stable/std/os/windows/fs/trait.FileTypeExt.html#tymethod.is_symlink_file)
8263

64+
These types were previously stable in `std::ffi`, but are now also available in `core` and `alloc`:
65+
66+
- [`core::ffi::CStr`](https://doc.rust-lang.org/stable/core/ffi/struct.CStr.html)
67+
- [`core::ffi::FromBytesWithNulError`](https://doc.rust-lang.org/stable/core/ffi/struct.FromBytesWithNulError.html)
68+
- [`alloc::ffi::CString`](https://doc.rust-lang.org/stable/alloc/ffi/struct.CString.html)
69+
- [`alloc::ffi::FromVecWithNulError`](https://doc.rust-lang.org/stable/alloc/ffi/struct.FromVecWithNulError.html)
70+
- [`alloc::ffi::IntoStringError`](https://doc.rust-lang.org/stable/alloc/ffi/struct.IntoStringError.html)
71+
- [`alloc::ffi::NulError`](https://doc.rust-lang.org/stable/alloc/ffi/struct.NulError.html)
72+
73+
These types were previously stable in `std::os::raw`, but are now also available in `core::ffi` and `std::ffi`:
74+
75+
- [`ffi::c_char`](https://doc.rust-lang.org/stable/std/ffi/type.c_char.html)
76+
- [`ffi::c_double`](https://doc.rust-lang.org/stable/std/ffi/type.c_double.html)
77+
- [`ffi::c_float`](https://doc.rust-lang.org/stable/std/ffi/type.c_float.html)
78+
- [`ffi::c_int`](https://doc.rust-lang.org/stable/std/ffi/type.c_int.html)
79+
- [`ffi::c_long`](https://doc.rust-lang.org/stable/std/ffi/type.c_long.html)
80+
- [`ffi::c_longlong`](https://doc.rust-lang.org/stable/std/ffi/type.c_longlong.html)
81+
- [`ffi::c_schar`](https://doc.rust-lang.org/stable/std/ffi/type.c_schar.html)
82+
- [`ffi::c_short`](https://doc.rust-lang.org/stable/std/ffi/type.c_short.html)
83+
- [`ffi::c_uchar`](https://doc.rust-lang.org/stable/std/ffi/type.c_uchar.html)
84+
- [`ffi::c_uint`](https://doc.rust-lang.org/stable/std/ffi/type.c_uint.html)
85+
- [`ffi::c_ulong`](https://doc.rust-lang.org/stable/std/ffi/type.c_ulong.html)
86+
- [`ffi::c_ulonglong`](https://doc.rust-lang.org/stable/std/ffi/type.c_ulonglong.html)
87+
- [`ffi::c_ushort`](https://doc.rust-lang.org/stable/std/ffi/type.c_ushort.html)
88+
8389
These APIs are now usable in const contexts:
8490

8591
- [`slice::from_raw_parts`](https://doc.rust-lang.org/stable/core/slice/fn.from_raw_parts.html)

0 commit comments

Comments
 (0)