about summary refs log tree commit diff
path: root/src/libstd/sys/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-10-26 19:35:59 +0000
committerbors <bors@rust-lang.org>2019-10-26 19:35:59 +0000
commitfae75cd216c481de048e4951697c8f8525669c65 (patch)
tree157e46f84638aa1fa3b0339ced417876e8ca209a /src/libstd/sys/mod.rs
parent46e6c533d08a2c6d22083a2756a0b569e001c3c4 (diff)
parent805a330ab4c7f33421acacbee0545f6991b2fc70 (diff)
downloadrust-fae75cd216c481de048e4951697c8f8525669c65.tar.gz
rust-fae75cd216c481de048e4951697c8f8525669c65.zip
Auto merge of #65167 - hermitcore:rusty-hermit, r=alexcrichton
Redesign the interface to the unikernel HermitCore

We are developing the unikernel HermitCore, where the kernel is written in Rust and is already part of the Rust Standard Library. The interface between the standard library and the kernel based on a small C library. With this pull request, we remove completely the dependency to C and use lld as linker. Currently, the kernel will be linked to the application as static library, which is published at https://github.com/hermitcore/libhermit-rs.

We don’t longer support the C interface to the kernel. Consequently, we remove this part from the Rust Standard Library.
Diffstat (limited to 'src/libstd/sys/mod.rs')
-rw-r--r--src/libstd/sys/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/sys/mod.rs b/src/libstd/sys/mod.rs
index 5a5859a6ad8..16b0539cdb9 100644
--- a/src/libstd/sys/mod.rs
+++ b/src/libstd/sys/mod.rs
@@ -35,6 +35,9 @@ cfg_if::cfg_if! {
     } else if #[cfg(target_os = "cloudabi")] {
         mod cloudabi;
         pub use self::cloudabi::*;
+    } else if #[cfg(target_os = "hermit")] {
+        mod hermit;
+        pub use self::hermit::*;
     } else if #[cfg(target_os = "wasi")] {
         mod wasi;
         pub use self::wasi::*;
@@ -60,6 +63,7 @@ cfg_if::cfg_if! {
         #[stable(feature = "rust1", since = "1.0.0")]
         pub use self::ext as unix_ext;
     } else if #[cfg(any(target_os = "cloudabi",
+                        target_os = "hermit",
                         target_arch = "wasm32",
                         all(target_vendor = "fortanix", target_env = "sgx")))] {
         // On CloudABI and wasm right now the module below doesn't compile