€•:» Œsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ ”Œchildren”]”(Œtranslations”Œ
LanguagesNode”“”)�”}”(hhh]”(h Œpending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ
attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ$/translations/zh_CN/rust/quick-start”Œmodname”NŒ classname”NŒrefexplicit”ˆuŒtagname”hhhubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/zh_TW/rust/quick-start”Œmodname”NŒ classname”NŒrefexplicit”ˆuh1hhhubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/it_IT/rust/quick-start”Œmodname”NŒ classname”NŒrefexplicit”ˆuh1hhhubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/ja_JP/rust/quick-start”Œmodname”NŒ classname”NŒrefexplicit”ˆuh1hhhubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/ko_KR/rust/quick-start”Œmodname”NŒ classname”NŒrefexplicit”ˆuh1hhhubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/pt_BR/rust/quick-start”Œmodname”NŒ classname”NŒrefexplicit”ˆuh1hhhubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/sp_SP/rust/quick-start”Œmodname”NŒ classname”NŒrefexplicit”ˆuh1hhhubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h
hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)�”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…”�”}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³Œ>/var/lib/git/docbuild/linux/Documentation/rust/quick-start.rst”h´KubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒQuick Start”h]”hŒQuick Start”…”�”}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhŒ paragraph”“”)�”}”(hŒKThis document describes how to get started with kernel development in Rust.”h]”hŒKThis document describes how to get started with kernel development in Rust.”…”�”}”(hhßh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hXG There are a few ways to install a Rust toolchain needed for kernel development.
A simple way is to use the packages from your Linux distribution if they are
suitable -- the first section below explains this approach. An advantage of this
approach is that, typically, the distribution will match the LLVM used by Rust
and Clang.”h]”hXG There are a few ways to install a Rust toolchain needed for kernel development.
A simple way is to use the packages from your Linux distribution if they are
suitable -- the first section below explains this approach. An advantage of this
approach is that, typically, the distribution will match the LLVM used by Rust
and Clang.”…”�”}”(hhíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hX‡ Another way is using the prebuilt stable versions of LLVM+Rust provided on
`kernel.org `_. These are the same slim
and fast LLVM toolchains from :ref:`Getting LLVM ` with versions
of Rust added to them that Rust for Linux supports. Two sets are provided: the
"latest LLVM" and "matching LLVM" (please see the link for more information).”h]”(hŒKAnother way is using the prebuilt stable versions of LLVM+Rust provided on
”…”�”}”(hhûh²hh³Nh´NubhŒ reference”“”)�”}”(hŒ7`kernel.org `_”h]”hŒ
kernel.org”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”Œ
kernel.org”Œrefuri”Œ'https://kernel.org/pub/tools/llvm/rust/”uh1j hhûubhŒtarget”“”)�”}”(hŒ* ”h]”h}”(h]”Œ
kernel-org”ah ]”h"]”Œ
kernel.org”ah$]”h&]”Œrefuri”j uh1j Œ
referenced”KhhûubhŒ8. These are the same slim
and fast LLVM toolchains from ”…”�”}”(hhûh²hh³Nh´Nubh)�”}”(hŒ":ref:`Getting LLVM `”h]”hŒinline”“”)�”}”(hj- h]”hŒGetting LLVM”…”�”}”(hj1 h²hh³Nh´Nubah}”(h]”h ]”(Œxref”Œstd”Œstd-ref”eh"]”h$]”h&]”uh1j/ hj+ ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œrust/quick-start”Œ refdomain”j< Œreftype”Œref”Œrefexplicit”ˆŒrefwarn”ˆŒ reftarget”Œgetting_llvm”uh1hh³hÇh´KhhûubhŒ³ with versions
of Rust added to them that Rust for Linux supports. Two sets are provided: the
“latest LLVMâ€� and “matching LLVMâ€� (please see the link for more information).”…”�”}”(hhûh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hŒ°Alternatively, the next two "Requirements" sections explain each component and
how to install them through ``rustup``, the standalone installers from Rust
and/or building them.”h]”(hŒoAlternatively, the next two “Requirementsâ€� sections explain each component and
how to install them through ”…”�”}”(hjZ h²hh³Nh´NubhŒliteral”“”)�”}”(hŒ
``rustup``”h]”hŒrustup”…”�”}”(hjd h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jb hjZ ubhŒ;, the standalone installers from Rust
and/or building them.”…”�”}”(hjZ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÞ)�”}”(hŒFThe rest of the document explains other aspects on how to get started.”h]”hŒFThe rest of the document explains other aspects on how to get started.”…”�”}”(hj| h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ
Distributions”h]”hŒ
Distributions”…”�”}”(hj� h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjŠ h²hh³hÇh´KubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ
Arch Linux”h]”hŒ
Arch Linux”…”�”}”(hjž h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj› h²hh³hÇh´KubhÞ)�”}”(hŒaArch Linux provides recent Rust releases and thus it should generally work out
of the box, e.g.::”h]”hŒ`Arch Linux provides recent Rust releases and thus it should generally work out
of the box, e.g.:”…”�”}”(hj¬ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K!hj› h²hubhŒ
literal_block”“”)�”}”(hŒ$pacman -S rust rust-src rust-bindgen”h]”hŒ$pacman -S rust rust-src rust-bindgen”…”�”}”hj¼ sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jº h³hÇh´K$hj› h²hubeh}”(h]”Œ
arch-linux”ah ]”h"]”Œ
arch linux”ah$]”h&]”uh1hÈhjŠ h²hh³hÇh´KubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒDebian”h]”hŒDebian”…”�”}”(hjÕ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjÒ h²hh³hÇh´K(ubhÞ)�”}”(hŒ˜Debian 13 (Trixie), as well as Testing and Debian Unstable (Sid) provide recent
Rust releases and thus they should generally work out of the box, e.g.::”h]”hŒ—Debian 13 (Trixie), as well as Testing and Debian Unstable (Sid) provide recent
Rust releases and thus they should generally work out of the box, e.g.:”…”�”}”(hjã h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K*hjÒ h²hubj» )�”}”(hŒ6apt install rustc rust-src bindgen rustfmt rust-clippy”h]”hŒ6apt install rustc rust-src bindgen rustfmt rust-clippy”…”�”}”hjñ sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jº h³hÇh´K-hjÒ h²hubeh}”(h]”Œdebian”ah ]”h"]”Œdebian”ah$]”h&]”uh1hÈhjŠ h²hh³hÇh´K(ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒFedora Linux”h]”hŒFedora Linux”…”�”}”(hj
h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj h²hh³hÇh´K1ubhÞ)�”}”(hŒcFedora Linux provides recent Rust releases and thus it should generally work out
of the box, e.g.::”h]”hŒbFedora Linux provides recent Rust releases and thus it should generally work out
of the box, e.g.:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K3hj h²hubj» )�”}”(hŒ4dnf install rust rust-src bindgen-cli rustfmt clippy”h]”hŒ4dnf install rust rust-src bindgen-cli rustfmt clippy”…”�”}”hj& sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jº h³hÇh´K6hj h²hubeh}”(h]”Œfedora-linux”ah ]”h"]”Œfedora linux”ah$]”h&]”uh1hÈhjŠ h²hh³hÇh´K1ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒGentoo Linux”h]”hŒGentoo Linux”…”�”}”(hj? h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj< h²hh³hÇh´K:ubhÞ)�”}”(hŒcGentoo Linux provides recent Rust releases and thus it should generally work out
of the box, e.g.::”h]”hŒbGentoo Linux provides recent Rust releases and thus it should generally work out
of the box, e.g.:”…”�”}”(hjM h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K