Lines Matching +full:fedora +full:- +full:release
1 .. SPDX-License-Identifier: GPL-2.0
10 suitable -- the first section below explains this approach. An advantage of this
28 -------------
36 pacman -S rust rust-src rust-bindgen
45 apt install rustc rust-src bindgen rustfmt rust-clippy
48 Fedora Linux
51 Fedora Linux provides recent Rust releases and thus it should generally work out
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
99 apt install rustc rust-src bindgen rustfmt rust-clippy
103 RUST_LIB_SRC=/usr/src/rustc-$(rustc --version | cut -d' ' -f2)/library
115 apt install rustc-1.80 rust-1.80-src bindgen-0.65 rustfmt-1.80 \
116 rust-1.80-clippy
117 ln -s /usr/lib/rust-1.80/bin/rustfmt /usr/bin/rustfmt-1.80
118 ln -s /usr/lib/rust-1.80/bin/clippy-driver /usr/bin/clippy-driver-1.80
123 make LLVM=1 RUSTC=rustc-1.80 RUSTDOC=rustdoc-1.80 RUSTFMT=rustfmt-1.80 \
124 CLIPPY_DRIVER=clippy-driver-1.80 BINDGEN=bindgen-0.65
129 PATH=/usr/lib/rust-1.80/bin:$PATH
130 update-alternatives --install /usr/bin/bindgen bindgen \
131 /usr/bin/bindgen-0.65 100
132 update-alternatives --set bindgen /usr/bin/bindgen-0.65
136 RUST_LIB_SRC=/usr/src/rustc-$(rustc-1.80 --version | cut -d' ' -f2)/library
140 In addition, ``bindgen-0.65`` is available in newer releases (24.04 LTS and
146 ----------------------
166 ``--path=<build-dir>`` argument to the ``set`` sub-command) and run,
175 sub-directories).
179 https://forge.rust-lang.org/infra/other-installation-methods.html#standalone
186 cross-compile ``core``.
190 rustup component add rust-src
193 version later on requires re-adding the component.
198 curl -L "https://static.rust-lang.org/dist/rust-src-$(rustc --version | cut -d' ' -f2).tar.gz" |
199 tar -xzf - -C "$(rustc --print sysroot)/lib" \
200 "rust-src-$(rustc --version | cut -d' ' -f2)/rust-src/lib/" \
201 --strip-components=3
204 updating the source tree (this can be done by removing ``$(rustc --print
224 https://llvm.org/docs/GettingStarted.html#getting-the-source-code-and-building-llvm
227 to fetch pre-built releases and distribution packages.
239 cargo install --locked bindgen-cli
241 ``bindgen`` uses the ``clang-sys`` crate to find a suitable ``libclang`` (which
246 ``LIBCLANG_PATH`` environment variable. For details, please see ``clang-sys``'s
249 https://github.com/KyleMayes/clang-sys#linking
251 https://github.com/KyleMayes/clang-sys#environment-variables
255 ------------------------
266 coding-guidelines.rst).
282 general-information.rst).
298 general-information.rst).
310 rust-analyzer
313 The `rust-analyzer <https://rust-analyzer.github.io/>`_ language server can
317 ``rust-analyzer`` needs a configuration file, ``rust-project.json``, which
318 can be generated by the ``rust-analyzer`` Make target::
320 make LLVM=1 rust-analyzer
324 -------------
334 -> Sample kernel code
335 -> Rust samples
337 And enable some sample modules either as built-in or as loadable.
341 --------
353 -------
363 - Install a newer release (GDB >= 10.2, Binutils >= 2.36).
365 - Some versions of GDB (e.g. vanilla GDB 10.1) are able to use
366 the pre-demangled names embedded in the debug info (``CONFIG_DEBUG_INFO``).