Skip to content

Commit ccfbb3f

Browse files
committed
feat: rename crate to hermit-kernel
Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
1 parent 19f1d34 commit ccfbb3f

File tree

8 files changed

+59
-59
lines changed

8 files changed

+59
-59
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- uses: mkroening/rust-toolchain-toml@main
2727
- uses: Swatinem/rust-cache@v2
2828
- name: Check each feature
29-
run: cargo hack check --package libhermit-rs --each-feature --no-dev-deps --target x86_64-unknown-none
29+
run: cargo hack check --package hermit-kernel --each-feature --no-dev-deps --target x86_64-unknown-none
3030
env:
3131
RUSTFLAGS:
3232

@@ -67,8 +67,8 @@ jobs:
6767
- uses: Swatinem/rust-cache@v2
6868
- name: Check docs
6969
run: |
70-
cargo doc --package libhermit-rs --no-deps --document-private-items --target x86_64-unknown-none
71-
cargo doc --package libhermit-rs --no-deps --document-private-items --target aarch64-unknown-none-softfloat --no-default-features
70+
cargo doc --package hermit-kernel --no-deps --document-private-items --target x86_64-unknown-none
71+
cargo doc --package hermit-kernel --no-deps --document-private-items --target aarch64-unknown-none-softfloat --no-default-features
7272
7373
build:
7474
name: Build
@@ -124,9 +124,9 @@ jobs:
124124
with:
125125
repository: hermitcore/rusty-hermit
126126
submodules: true
127-
- name: Remove libhermit-rs submodule
127+
- name: Remove hermit-kernel submodule
128128
run: git rm -r libhermit-rs
129-
- name: Checkout libhermit-rs
129+
- name: Checkout hermit-kernel
130130
uses: actions/checkout@v3
131131
with:
132132
path: libhermit-rs
@@ -249,9 +249,9 @@ jobs:
249249
with:
250250
repository: hermitcore/rusty-hermit
251251
submodules: true
252-
- name: Remove libhermit-rs submodule
252+
- name: Remove hermit-kernel submodule
253253
run: git rm -r libhermit-rs
254-
- name: Checkout libhermit-rs
254+
- name: Checkout hermit-kernel
255255
uses: actions/checkout@v3
256256
with:
257257
path: libhermit-rs

.github/workflows/publish_docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ jobs:
2121
sudo apt-get update
2222
sudo apt-get install nasm
2323
- name: Generate documentation
24-
run: cargo doc --target x86_64-unknown-none --package libhermit-rs
24+
run: cargo doc --target x86_64-unknown-none --package hermit-kernel
2525
- name: Generate index.html
2626
run: |
2727
cat > target/x86_64-unknown-none/doc/index.html <<EOL
2828
<!doctype html>
2929
<html>
3030
<head>
3131
<title>Redirect!</title>
32-
<meta http-equiv="refresh" content="0; url=https://hermitcore.github.io/libhermit-rs/hermit/" />
32+
<meta http-equiv="refresh" content="0; url=https://hermitcore.github.io/kernel/hermit/" />
3333
</head>
3434
<body>
35-
<p><a href="https://hermitcore.github.io/libhermit-rs/hermit/">Redirect</a></p>
35+
<p><a href="https://hermitcore.github.io/kernel/hermit/">Redirect</a></p>
3636
</body>
3737
</html>
3838
EOL

Cargo.lock

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "libhermit-rs"
2+
name = "hermit-kernel"
33
version = "0.6.4"
44
authors = [
55
"Stefan Lankes <slankes@eonerc.rwth-aachen.de>",
@@ -16,8 +16,8 @@ license = "MIT OR Apache-2.0"
1616
readme = "README.md"
1717
keywords = ["unikernel", "libos"]
1818
categories = ["os"]
19-
repository = "https://github.com/hermitcore/libhermit-rs"
20-
documentation = "https://hermitcore.github.io/libhermit-rs/hermit/"
19+
repository = "https://github.com/hermitcore/kernel"
20+
documentation = "https://hermitcore.github.io/kernel/hermit/"
2121
edition = "2021"
2222
description = "A Rust-based library operating system"
2323
exclude = [

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<img width="100" align="right" src="img/hermitcore_logo.png" />
22

3-
# RustyHermit: libhermit-rs
3+
# Hermit Kernel
44

5-
[![Documentation](https://img.shields.io/badge/docs-latest-blue.svg)](https://hermitcore.github.io/libhermit-rs/hermit/)
5+
[![Documentation](https://img.shields.io/badge/docs-latest-blue.svg)](https://hermitcore.github.io/kernel/hermit/)
66
![License](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue)
77
[![Zulip Badge](https://img.shields.io/badge/chat-hermit-57A37C?logo=zulip)](https://hermit.zulipchat.com/)
88

9-
_libhermit-rs_ is the kernel of the [RustyHermit](https://github.com/hermitcore/rusty-hermit) unikernel project.
9+
This is the kernel of the [Hermit](https://github.com/hermitcore) unikernel project.
1010

1111
## Requirements
1212

@@ -28,11 +28,11 @@ cargo xtask build --arch x86_64
2828
```
2929

3030
On completion, the script will print the path of `libhermit.a`.
31-
If you want to build _libhermit-rs_ for aarch64, please replace `x86_64` by `aarch64`.
31+
If you want to build the kernel for aarch64, please replace `x86_64` by `aarch64`.
3232

3333
### Control the kernel messages verbosity
3434

35-
_libhermit-rs_ uses the lightweight logging crate [log](https://github.com/rust-lang/log) to print kernel messages.
35+
This kernel uses the lightweight logging crate [log](https://github.com/rust-lang/log) to print kernel messages.
3636
The environment variable `HERMIT_LOG_LEVEL_FILTER` controls the verbosity.
3737
You can change it by setting it at compile time to a string matching the name of a [LevelFilter](https://docs.rs/log/0.4.8/log/enum.LevelFilter.html).
3838
If the variable is not set, or the name doesn't match, then `LevelFilter::Info` is used by default.
@@ -43,7 +43,7 @@ $ HERMIT_LOG_LEVEL_FILTER=Debug cargo xtask build --arch x86_64
4343

4444
## Credits
4545

46-
_libhermit-rs_ is derived from following tutorials and software distributions:
46+
This kernel is derived from following tutorials and software distributions:
4747

4848
1. Philipp Oppermann's [excellent series of blog posts][opp].
4949
2. Erik Kidd's [toyos-rs][kidd], which is an extension of Philipp Opermann's kernel.
@@ -68,5 +68,5 @@ at your option.
6868

6969
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
7070

71-
libhermit-rs is being developed on [GitHub](https://github.com/hermitcore/libhermit-rs).
71+
The kernel is being developed on [hermitcore/kernel](https://github.com/hermitcore/kernel).
7272
Create your own fork, send us a pull request, and chat with us on [Zulip](https://hermit.zulipchat.com/).

src/arch/aarch64/mm/paging.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ where
510510
/// Returns the next subtable for the given page in the page table hierarchy.
511511
///
512512
/// Must only be called if a page of this size is mapped in a subtable!
513-
// FIXME: https://github.com/hermitcore/libhermit-rs/issues/771
513+
// FIXME: https://github.com/hermitcore/hermit-kernel/issues/771
514514
#[allow(clippy::mut_from_ref)]
515515
fn subtable<S: PageSize>(&self, page: Page<S>) -> &mut PageTable<L::SubtableLevel> {
516516
assert!(L::LEVEL < S::MAP_LEVEL);

src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ macro_rules! kernel_function {
104104
}
105105

106106
// TODO: Properly switch kernel stack with newlib
107-
// https://github.com/hermitcore/libhermit-rs/issues/471
107+
// https://github.com/hermitcore/hermit-kernel/issues/471
108108
#[cfg(all(target_arch = "x86_64", feature = "newlib"))]
109109
macro_rules! kernel_function {
110110
($f:ident($($x:tt)*)) => {{

xtask/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl flags::Build {
8787
.unwrap_or_default();
8888

8989
// TODO: Re-enable mutable-noalias
90-
// https://github.com/hermitcore/libhermit-rs/issues/200
90+
// https://github.com/hermitcore/hermit-kernel/issues/200
9191
rustflags.push("-Zmutable-noalias=no");
9292

9393
if self.instrument_mcount {
@@ -198,7 +198,7 @@ impl flags::Clippy {
198198
let sh = sh()?;
199199

200200
// TODO: Enable clippy for aarch64
201-
// https://github.com/hermitcore/libhermit-rs/issues/381
201+
// https://github.com/hermitcore/hermit-kernel/issues/381
202202
for target in [Arch::X86_64, Arch::AArch64] {
203203
let target_args = target.cargo_args();
204204
cmd!(sh, "cargo clippy {target_args...}").run()?;
@@ -210,7 +210,7 @@ impl flags::Clippy {
210210
.arg("--features=acpi,fsgsbase,pci,smp,vga")
211211
.run()?;
212212
// TODO: Enable clippy for newlib
213-
// https://github.com/hermitcore/libhermit-rs/issues/470
213+
// https://github.com/hermitcore/hermit-kernel/issues/470
214214
// cmd!(sh, "cargo clippy {target_args...}")
215215
// .arg("--no-default-features")
216216
// .arg("--features=acpi,fsgsbase,newlib,smp,vga")

0 commit comments

Comments
 (0)