Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
60 lines
1.6 KiB
ReStructuredText
60 lines
1.6 KiB
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0
|
|
.. include:: ../disclaimer-zh_CN.rst
|
|
|
|
:Original: Documentation/rust/index.rst
|
|
|
|
:翻译:
|
|
|
|
司延腾 Yanteng Si <siyanteng@loongson.cn>
|
|
|
|
Rust
|
|
====
|
|
|
|
与内核中的Rust有关的文档。若要开始在内核中使用Rust,请阅读 quick-start.rst 指南。
|
|
|
|
Rust 实验
|
|
---------
|
|
Rust 支持在 v6.1 版本中合并到主线,以帮助确定 Rust 作为一种语言是否适合内核,
|
|
即是否值得进行权衡。
|
|
|
|
目前,Rust 支持主要面向对 Rust 支持感兴趣的内核开发人员和维护者,
|
|
以便他们可以开始处理抽象和驱动程序,并帮助开发基础设施和工具。
|
|
|
|
如果您是终端用户,请注意,目前没有适合或旨在生产使用的内置驱动程序或模块,
|
|
并且 Rust 支持仍处于开发/实验阶段,尤其是对于特定内核配置。
|
|
|
|
代码文档
|
|
--------
|
|
|
|
给定一个内核配置,内核可能会生成 Rust 代码文档,即由 ``rustdoc`` 工具呈现的 HTML。
|
|
|
|
.. only:: rustdoc and html
|
|
|
|
该内核文档使用 `Rust 代码文档 <rustdoc/kernel/index.html>`_ 构建。
|
|
|
|
.. only:: not rustdoc and html
|
|
|
|
该内核文档不使用 Rust 代码文档构建。
|
|
|
|
预生成版本提供在:https://rust.docs.kernel.org。
|
|
|
|
请参阅 :ref:`代码文档 <rust_code_documentation_zh_cn>` 部分以获取更多详细信息。
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
|
|
quick-start
|
|
general-information
|
|
coding-guidelines
|
|
arch-support
|
|
testing
|
|
|
|
你还可以在 :doc:`../../../process/kernel-docs` 中找到 Rust 的学习材料。
|
|
|
|
.. only:: subproject and html
|
|
|
|
Indices
|
|
=======
|
|
|
|
* :ref:`genindex`
|