From eade8365b1b6aff3404de4d5e39818482169de29 Mon Sep 17 00:00:00 2001 From: Barrett Date: Sat, 4 May 2024 13:28:25 -0500 Subject: [PATCH 1/3] docs(fix): incorrect Hermit links in the rustc book the Hermit team seems to have moved from `hermitcore` to `hermit-os` on GitHub. this change corrects the old links on its target page. --- src/doc/rustc/src/platform-support/hermit.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/doc/rustc/src/platform-support/hermit.md b/src/doc/rustc/src/platform-support/hermit.md index 146079e36f4..d3d74fb1bd9 100644 --- a/src/doc/rustc/src/platform-support/hermit.md +++ b/src/doc/rustc/src/platform-support/hermit.md @@ -4,7 +4,7 @@ The [Hermit] unikernel target allows compiling your applications into self-contained, specialized unikernel images that can be run in small virtual machines. -[Hermit]: https://github.com/hermitcore +[Hermit]: https://github.com/hermit-os Target triplets available so far: @@ -58,7 +58,7 @@ To compile for these targets, you will either need to build Rust with the target Building Rust programs can be done by following the tutorial in our starter application [rusty-demo]. -[rusty-demo]: https://github.com/hermitcore/rusty-demo +[rusty-demo]: https://github.com/hermit-os/rusty-demo ## Testing @@ -67,8 +67,8 @@ These images can be chainloaded by Hermit's [loader] or hypervisor ([Uhyve]). QEMU can be used to boot Hermit binaries using the loader on any architecture. The targets do not support running the Rust test suite. -[loader]: https://github.com/hermitcore/rusty-loader -[Uhyve]: https://github.com/hermitcore/uhyve +[loader]: https://github.com/hermit-os/hermit-rs-template +[Uhyve]: https://github.com/hermit-os/uhyve ## Cross-compilation toolchains and C code From da961a8b928e96d719117c9409fd6099efc06cff Mon Sep 17 00:00:00 2001 From: Barrett Date: Sat, 4 May 2024 13:39:38 -0500 Subject: [PATCH 2/3] fix(docs): Correct Hermit links to loader + 'rusty-demo' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both are renamed! Sorry for the initial incorrect commit, but this should correct it. šŸ˜„ --- src/doc/rustc/src/platform-support/hermit.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/doc/rustc/src/platform-support/hermit.md b/src/doc/rustc/src/platform-support/hermit.md index d3d74fb1bd9..9aada469acc 100644 --- a/src/doc/rustc/src/platform-support/hermit.md +++ b/src/doc/rustc/src/platform-support/hermit.md @@ -56,9 +56,9 @@ Rust does not yet ship pre-compiled artifacts for these targets. To compile for these targets, you will either need to build Rust with the targets enabled (see ā€œBuilding the targetsā€ above), or build your own copy of `core` by using `build-std` or similar. -Building Rust programs can be done by following the tutorial in our starter application [rusty-demo]. +Building Rust programs can be done by following the tutorial in our starter application [hermit-rs-template]. -[rusty-demo]: https://github.com/hermit-os/rusty-demo +[hermit-rs-template]: https://github.com/hermit-os/hermit-rs-template ## Testing @@ -67,7 +67,7 @@ These images can be chainloaded by Hermit's [loader] or hypervisor ([Uhyve]). QEMU can be used to boot Hermit binaries using the loader on any architecture. The targets do not support running the Rust test suite. -[loader]: https://github.com/hermit-os/hermit-rs-template +[loader]: https://github.com/hermit-os/loader [Uhyve]: https://github.com/hermit-os/uhyve ## Cross-compilation toolchains and C code From 3abefa17fbd05cdb8868c9256b3374f34fae4ab4 Mon Sep 17 00:00:00 2001 From: barrett <66580279+onkoe@users.noreply.github.com> Date: Sat, 4 May 2024 14:53:08 -0500 Subject: [PATCH 3/3] docs(hermit): Explain Hermit's template link Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com> --- src/doc/rustc/src/platform-support/hermit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/rustc/src/platform-support/hermit.md b/src/doc/rustc/src/platform-support/hermit.md index 9aada469acc..5aa787e53e1 100644 --- a/src/doc/rustc/src/platform-support/hermit.md +++ b/src/doc/rustc/src/platform-support/hermit.md @@ -56,7 +56,7 @@ Rust does not yet ship pre-compiled artifacts for these targets. To compile for these targets, you will either need to build Rust with the targets enabled (see ā€œBuilding the targetsā€ above), or build your own copy of `core` by using `build-std` or similar. -Building Rust programs can be done by following the tutorial in our starter application [hermit-rs-template]. +As all Hermit programs are unikernels, building a Rust program also requires including the operating system code. A guide for doing so is provided in our starter [hermit-rs-template]. [hermit-rs-template]: https://github.com/hermit-os/hermit-rs-template