• Home
  • Raw
  • Download

Lines Matching +full:re +full:- +full:started

1 .. SPDX-License-Identifier: GPL-2.0
6 This document describes how to get started with kernel development in Rust.
10 suitable -- the first section below explains this approach. An advantage of this
24 The rest of the document explains other aspects on how to get started.
28 -------------
36 pacman -S rust rust-src rust-bindgen
45 apt install rustc rust-src bindgen rustfmt rust-clippy
54 dnf install rust rust-src bindgen-cli rustfmt clippy
63 USE='rust-src rustfmt clippy' emerge dev-lang/rust dev-util/bindgen
76 nativeBuildInputs = with pkgs; [ rustc rust-bindgen rustfmt clippy ];
87 zypper install rust rust1.79-src rust-bindgen clang
91 ----------------------
111 ``--path=<build-dir>`` argument to the ``set`` sub-command) and run,
120 sub-directories).
124 https://forge.rust-lang.org/infra/other-installation-methods.html#standalone
131 cross-compile ``core``.
135 rustup component add rust-src
138 version later on requires re-adding the component.
143 curl -L "https://static.rust-lang.org/dist/rust-src-$(rustc --version | cut -d' ' -f2).tar.gz" |
144 tar -xzf - -C "$(rustc --print sysroot)/lib" \
145 "rust-src-$(rustc --version | cut -d' ' -f2)/rust-src/lib/" \
146 --strip-components=3
149 updating the source tree (this can be done by removing ``$(rustc --print
169 https://llvm.org/docs/GettingStarted.html#getting-the-source-code-and-building-llvm
172 to fetch pre-built releases and distribution packages.
184 cargo install --locked bindgen-cli
186 ``bindgen`` uses the ``clang-sys`` crate to find a suitable ``libclang`` (which
191 ``LIBCLANG_PATH`` environment variable. For details, please see ``clang-sys``'s
194 https://github.com/KyleMayes/clang-sys#linking
196 https://github.com/KyleMayes/clang-sys#environment-variables
200 ------------------------
211 coding-guidelines.rst).
227 general-information.rst).
243 general-information.rst).
255 rust-analyzer
258 The `rust-analyzer <https://rust-analyzer.github.io/>`_ language server can
262 ``rust-analyzer`` needs a configuration file, ``rust-project.json``, which
263 can be generated by the ``rust-analyzer`` Make target::
265 make LLVM=1 rust-analyzer
269 -------------
279 -> Sample kernel code
280 -> Rust samples
282 And enable some sample modules either as built-in or as loadable.
286 --------
298 -------
308 - Install a newer release (GDB >= 10.2, Binutils >= 2.36).
310 - Some versions of GDB (e.g. vanilla GDB 10.1) are able to use
311 the pre-demangled names embedded in the debug info (``CONFIG_DEBUG_INFO``).