Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest the mach2 crate instead #2539

Merged
merged 1 commit into from Nov 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/macros.rs
Expand Up @@ -307,13 +307,13 @@ macro_rules! align_const {
)*)
}

// This macro is used to deprecate items that should be accessed via the mach crate
// This macro is used to deprecate items that should be accessed via the mach2 crate
#[allow(unused_macros)]
macro_rules! deprecated_mach {
(pub const $id:ident: $ty:ty = $expr:expr;) => {
#[deprecated(
since = "0.2.55",
note = "Use the `mach` crate instead",
note = "Use the `mach2` crate instead",
)]
#[allow(deprecated)]
pub const $id: $ty = $expr;
Expand All @@ -328,7 +328,7 @@ macro_rules! deprecated_mach {
(pub type $id:ident = $ty:ty;) => {
#[deprecated(
since = "0.2.55",
note = "Use the `mach` crate instead",
note = "Use the `mach2` crate instead",
)]
#[allow(deprecated)]
pub type $id = $ty;
Expand Down
18 changes: 9 additions & 9 deletions src/unix/bsd/apple/mod.rs
Expand Up @@ -254,7 +254,7 @@ s! {

#[deprecated(
since = "0.2.55",
note = "Use the `mach` crate instead",
note = "Use the `mach2` crate instead",
)]
pub struct mach_timebase_info {
pub numer: u32,
Expand Down Expand Up @@ -522,7 +522,7 @@ s! {

#[deprecated(
since = "0.2.55",
note = "Use the `mach` crate instead",
note = "Use the `mach2` crate instead",
)]
pub struct mach_header {
pub magic: u32,
Expand All @@ -536,7 +536,7 @@ s! {

#[deprecated(
since = "0.2.55",
note = "Use the `mach` crate instead",
note = "Use the `mach2` crate instead",
)]
pub struct mach_header_64 {
pub magic: u32,
Expand Down Expand Up @@ -4790,9 +4790,9 @@ extern "C" {
newp: *mut ::c_void,
newlen: ::size_t,
) -> ::c_int;
#[deprecated(since = "0.2.55", note = "Use the mach crate")]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
pub fn mach_absolute_time() -> u64;
#[deprecated(since = "0.2.55", note = "Use the mach crate")]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
#[allow(deprecated)]
pub fn mach_timebase_info(info: *mut ::mach_timebase_info) -> ::c_int;
pub fn mach_host_self() -> mach_port_t;
Expand Down Expand Up @@ -5062,14 +5062,14 @@ extern "C" {
pub fn brk(addr: *const ::c_void) -> *mut ::c_void;
pub fn sbrk(increment: ::c_int) -> *mut ::c_void;
pub fn settimeofday(tv: *const ::timeval, tz: *const ::timezone) -> ::c_int;
#[deprecated(since = "0.2.55", note = "Use the mach crate")]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
pub fn _dyld_image_count() -> u32;
#[deprecated(since = "0.2.55", note = "Use the mach crate")]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
#[allow(deprecated)]
pub fn _dyld_get_image_header(image_index: u32) -> *const mach_header;
#[deprecated(since = "0.2.55", note = "Use the mach crate")]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
pub fn _dyld_get_image_vmaddr_slide(image_index: u32) -> ::intptr_t;
#[deprecated(since = "0.2.55", note = "Use the mach crate")]
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
pub fn _dyld_get_image_name(image_index: u32) -> *const ::c_char;

pub fn posix_spawn(
Expand Down