rust (host)
QNX SDP8.0Utilities ReferenceUtilities
Statically-typed general-purpose programming language.
Syntax:
rustc [option] input
Runs on:
Microsoft Windows, Linux
Options:
For the list of available options, refer to the Command-line Arguments
page on the Rust Documentation (https://doc.rust-lang.org/stable/).
Description:
Rustc is a compiler for the Rust programming language, and it is modified to support QNX.
- Run the compiler directly to compile the Rust source files (
.rs
). For more details, refer toWhat is rustc
. - Run the compiler indirectly via the cargo build command (refer to
cargo-build
) which requires linking the QNX Rust toolchain as a custom rustup toolchain (refer toCustom toolchains
).- Specify either --target x86_64-pc-nto-qnx800 or --target aarch64-unknown-nto-qnx800 to any of the commands to build for the x86_64 or AArch64 processors, respectively.
Environment variables:
For the list of available environment variables, refer to the Working with Environment Variables
page in the
Rust Programming Language guide here: https://doc.rust-lang.org/book/title-page.html.
Contributors:
Rust open-source community
Page updated: