> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apich.org/llms.txt
> Use this file to discover all available pages before exploring further.

# 快速开始

> 快速安装并上手 Apich Organization 的 Rust Crate、Aevia 语言工具链、cargo-slide 与 Ensia 插件。

根据你要使用的项目选择下方标签页，获取最短路径的安装与验证方式；完整 API 文档请前往各项目概览页中的权威文档链接。

## 前置条件

* **Rust Crate（`dtact`、`bincode-next`、`rssn`、`virtue-next`）**：通过 [rustup.rs](https://rustup.rs/) 安装的现代稳定版 Rust 工具链（具体 MSRV 见各 Crate 的 `Cargo.toml` 或 `docs.rs`）。
* **`aevia`**：可通过官方安装脚本获取预编译二进制；若需校验 GitHub Release Attestation，请安装 [GitHub CLI (`gh`)](https://cli.github.com/)。
* **`cargo-slide`**：除 Rust 工具链外，还需在 `PATH` 中安装 `typst` CLI（如 `cargo install --locked typst-cli` 或 `brew install typst`）。
* **`ensia`**：编译混淆 Pass 插件需要 LLVM 21+ 工具链（支持 LLVM 21、22、23+）与 CMake。

## 按项目快速上手

> [tab] Rust Crates
>
> 使用 `cargo add` 直接添加所需 Crate：
>
> ```bash theme={null}
> # 有栈协程运行时（及可选异步 I/O 伴生库）
> cargo add dtact
> cargo add dtact-util
>
> # 高性能二进制序列化（可选开启 zero-copy）
> cargo add bincode-next --features zero-copy
>
> # 计算机代数、数值内核与物理仿真
> cargo add rssn
>
> # 零必需依赖的派生宏辅助库（用于 proc-macro crate）
> cargo add virtue-next
> ```
>
> > [!NOTE]
> >
> > 所有 Crate 均可在稳定版 Rust 上构建，不包含遥测或联网构建脚本。完整 API 与 Feature 说明请查看 [docs.rs](https://docs.rs/)。

> [tab] Aevia 语言
>
> 使用官方安装脚本安装 `aevia`、`aevia-lsp` 与 `aevia-pkg`（自动校验 SHA-256 与 GitHub Release Attestation）：
>
> ```bash macOS / Linux theme={null}
> curl -fsSL https://aevia.apich.org/install.sh | sh
> ```
>
> ```powershell Windows (PowerShell) theme={null}
> & ([scriptblock]::Create((irm 'https://aevia.apich.org/install.ps1')))
> ```
>
> 验证安装并运行示例模型：
>
> ```bash theme={null}
> aevia --version
> aevia check examples/kinematics.aev
> aevia run examples/kinematics.aev
> ```
>
> 完整语言教程（The Aevia Book）、标准库参考与在线演练场位于 [aevia.apich.org](https://aevia.apich.org/)。

> [tab] cargo-slide
>
> 安装命令行工具、初始化五文件 Typst 演示项目并启动原生播放器或编辑器：
>
> ```bash theme={null}
> cargo install cargo-slide
> cargo slide init my-talk
> cd my-talk
>
> # 以 60 FPS 原生渲染演示文稿
> cargo slide run
>
> # 或启动所见即所得桌面编辑器
> cargo slide edit
> ```
>
> 打包为独立可执行文件、`.slide` 压缩归档或静态 WebAssembly 站点：
>
> ```bash theme={null}
> cargo slide build
> cargo slide pack -o my-talk.slide
> cargo slide export --format wasm -o dist-web/
> ```

> [tab] Ensia (LLVM)
>
> 通过 Clang 或 `rustc` 加载编译好的 Pass 插件，并使用预设或 `ensia.toml` 策略文件：
>
> ```bash Clang (C / C++) theme={null}
> # 自动发现当前目录的 ./ensia.toml，或通过环境变量指定预设
> ENSIA_PRESET=mid clang -fpass-plugin=/path/to/libEnsia.so -O2 main.c -o main
> ```
>
> ```bash Rust (cargo) theme={null}
> ENSIA_CONFIG=ensia.toml RUSTC_BOOTSTRAP=1 \
> RUSTFLAGS="-Z llvm-plugins=/path/to/libEnsia_rust.so -C passes=ensia" \
> cargo build --release
> ```
>
> > [!WARNING]
> >
> > Ensia 属于具备双用途属性的强力代码保护工具，集成前请务必阅读 [ETHICS.md](https://github.com/Apich-Organization/ensia/blob/main/ETHICS.md)。

## 需要帮助？

> [!TIP]
>
> 如有使用疑问、架构讨论或故障排查需求，欢迎前往官方社区论坛 [forum.apich.org](https://forum.apich.org/) 发帖，或在 [Zulip](https://apich.zulipchat.com/) 与维护者交流。


## Related topics

- [Apich Organization 文档中心](https://docs.apich.org/zh-Hans/index.md)
- [aevia](https://docs.apich.org/zh-Hans/projects/aevia.md)
- [社区、治理与致谢](https://docs.apich.org/zh-Hans/guides/community-and-support.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.