Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fae75cd

Browse files
committedOct 26, 2019
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.
2 parents 46e6c53 + 805a330 commit fae75cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2322
-450
lines changed
 

‎Cargo.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,6 +1328,17 @@ dependencies = [
13281328
"unicode-segmentation",
13291329
]
13301330

1331+
[[package]]
1332+
name = "hermit-abi"
1333+
version = "0.1.1"
1334+
source = "registry+https://github.com/rust-lang/crates.io-index"
1335+
checksum = "f22b8f315b98f415780ddbe9163c7dbbc5a07225b6d102ace1d8aeef85775140"
1336+
dependencies = [
1337+
"compiler_builtins",
1338+
"libc",
1339+
"rustc-std-workspace-core",
1340+
]
1341+
13311342
[[package]]
13321343
name = "hex"
13331344
version = "0.3.2"
@@ -4159,6 +4170,7 @@ dependencies = [
41594170
"dlmalloc",
41604171
"fortanix-sgx-abi",
41614172
"hashbrown 0.6.2",
4173+
"hermit-abi",
41624174
"libc",
41634175
"panic_abort",
41644176
"panic_unwind",

‎src/bootstrap/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ mod job {
160160
}
161161
}
162162

163-
#[cfg(any(target_os = "haiku", not(any(unix, windows))))]
163+
#[cfg(any(target_os = "haiku", target_os = "hermit", not(any(unix, windows))))]
164164
mod job {
165165
pub unsafe fn setup(_build: &mut crate::Build) {
166166
}

0 commit comments

Comments
 (0)
Please sign in to comment.