asterinas/README_CN.md
2025-05-12 22:01:05 +08:00

77 lines
3.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p align="center">
<img src="docs/src/images/logo_cn.svg" alt="asterinas-logo" width="620"><br>
一个安全、快速、通用的操作系统内核使用Rust编写并与Linux兼容<br/>
<a href="https://github.com/asterinas/asterinas/actions/workflows/test_x86.yml"><img src="https://github.com/asterinas/asterinas/actions/workflows/test_x86.yml/badge.svg?event=push" alt="Test x86-64" style="max-width: 100%;"></a>
<a href="https://github.com/asterinas/asterinas/actions/workflows/test_riscv.yml"><img src="https://github.com/asterinas/asterinas/actions/workflows/test_riscv.yml/badge.svg?event=push" alt="Test riscv64" style="max-width: 100%;"></a>
<a href="https://github.com/asterinas/asterinas/actions/workflows/test_x86_tdx.yml"><img src="https://github.com/asterinas/asterinas/actions/workflows/test_x86_tdx.yml/badge.svg" alt="Test Intel TDX" style="max-width: 100%;"></a>
<a href="https://asterinas.github.io/benchmark/x86-64/"><img src="https://github.com/asterinas/asterinas/actions/workflows/benchmark_x86.yml/badge.svg" alt="Benchmark x86-64" style="max-width: 100%;"></a>
<br/>
</p>
[English](README.md) | 中文版 | [日本語](README_JP.md)
## 初见星绽
星绽英文名Asterinas是一个*安全*、*快速*、*通用*的操作系统内核。
它提供于Linux相同的ABI可无缝运行Linux应用
但比Linux更加*内存安全*和*开发者友好*。
* 星绽在内存安全性方面远胜Linux。
它使用Rust作为唯一的编程语言
并将*unsafe Rust*的使用限制在一个明确定义且最小的可信计算基础TCB上。
这种新颖的方法,
被称为[框内核架构](https://asterinas.github.io/book/kernel/the-framekernel-architecture.html)
使星绽成为一个更安全、更可靠的内核选择。
* 星绽在开发者友好性方面优于Linux。
它赋能内核开发者们
1使用生产力更高的Rust编程语言
2利用一个专为内核开发者设计的工具包称为[OSDK](https://asterinas.github.io/book/osdk/guide/index.html))来简化他们的工作流程,
3享受[MPL](#License)所带来的灵活性,
可自由选择开源或闭源他们为星绽所开发的内核模块或驱动。
虽然通往生产级操作系统内核的路上注定充满艰险,
但我们坚信正朝着正确的方向迈进。
在2024年期间我们大幅提升了Asterinas的成熟度
详细内容请参阅我们的[年终报告](https://asterinas.github.io/2025/01/20/asterinas-in-2024.html)。
2025年我们的主要目标是让Asterinas在x86-64虚拟机上达到生产级水平并吸引真正的用户
## 快速上手
准备一台安装了Docker的、x86-64架构的Linux机器。
按照以下三个简单的步骤来构建和启动星绽。
1. 下载最新的源代码。
```bash
git clone https://github.com/asterinas/asterinas
```
2. 运行一个作为开发环境的Docker容器。
```bash
docker run -it --privileged --network=host --device=/dev/kvm -v $(pwd)/asterinas:/root/asterinas asterinas/asterinas:0.15.0-20250509
```
3. 在容器内,进入项目文件夹构建并运行星绽。
```bash
make build
make run
```
如果一切顺利,星绽现在应该在一个虚拟机内运行起来了。
## 技术文档
查看[The Asterinas Book](https://asterinas.github.io/book/)
以了解更多关于本项目的信息。
## 开源许可
星绽的源代码和文档主要使用
[Mozilla公共许可证MPL版本2.0](https://github.com/asterinas/asterinas/blob/main/LICENSE-MPL)
部分组件在更宽松的许可证下发布,
详见[这里](https://github.com/asterinas/asterinas/blob/main/.licenserc.yaml)。
关于选择MPL的原因请见[这里](https://asterinas.github.io/book/index.html#licensing)。