summaryrefslogtreecommitdiffstats
path: root/third_party/rust/mach/src/lib.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /third_party/rust/mach/src/lib.rs
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/mach/src/lib.rs')
-rw-r--r--third_party/rust/mach/src/lib.rs60
1 files changed, 60 insertions, 0 deletions
diff --git a/third_party/rust/mach/src/lib.rs b/third_party/rust/mach/src/lib.rs
new file mode 100644
index 0000000000..faec2cbfa5
--- /dev/null
+++ b/third_party/rust/mach/src/lib.rs
@@ -0,0 +1,60 @@
+#![allow(non_camel_case_types)]
+#![allow(non_upper_case_globals)]
+#![deny(missing_debug_implementations)]
+#![deny(missing_copy_implementations)]
+#![cfg_attr(feature = "rustc-dep-of-std", feature(no_core))]
+#![cfg_attr(feature = "rustc-dep-of-std", no_core)]
+#![cfg_attr(not(feature = "rustc-dep-of-std"), no_std)]
+#![allow(
+ clippy::module_name_repetitions,
+ clippy::cast_sign_loss,
+ clippy::cast_possible_truncation,
+ clippy::trivially_copy_pass_by_ref
+)]
+
+#[cfg(not(any(target_os = "macos", target_os = "ios")))]
+compile_error!("mach requires MacOSX or iOS");
+
+#[cfg(feature = "rustc-dep-of-std")]
+extern crate rustc_std_workspace_core as core;
+
+extern crate libc;
+
+#[allow(unused_imports)]
+use core::{clone, cmp, default, fmt, hash, marker, mem, option};
+
+pub mod boolean;
+pub mod bootstrap;
+pub mod clock;
+pub mod clock_priv;
+pub mod clock_reply;
+pub mod clock_types; // TODO: test
+pub mod dyld_kernel;
+// pub mod error; // TODO
+pub mod exc;
+pub mod exception_types;
+pub mod kern_return;
+pub mod mach_init;
+pub mod mach_port;
+pub mod mach_time;
+pub mod mach_types;
+pub mod memory_object_types;
+pub mod message;
+pub mod port;
+pub mod structs;
+pub mod task;
+pub mod task_info;
+pub mod thread_act;
+pub mod thread_status;
+pub mod traps;
+pub mod vm;
+pub mod vm_attributes;
+pub mod vm_behavior;
+pub mod vm_inherit;
+pub mod vm_page_size;
+pub mod vm_prot;
+pub mod vm_purgable;
+pub mod vm_region;
+pub mod vm_statistics;
+pub mod vm_sync;
+pub mod vm_types;