Skip to content

Commit

Permalink
put docs under right heading
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers committed Jan 10, 2025
1 parent 3e06aa3 commit 6d848bb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/mdbook/src/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Check in the generated files under `rustutils/cpp`.

We might intergrate this generation process into the build, but the tools to do so are experimental and immature as of January 2025.

## Building

You need to have the correct Rust toolchain(s) installed. See [Install Rust](https://www.rust-lang.org/tools/install) to install Rust.

You can use `rustup` to manage toolchains. Which toolchain you needs depends on your host platform and for what platform you are trying to build. If your host and target platform are the same, you probably have the correct toolchain installed after installing Rust. For example when building for **Android** and building on a **x84 Linux** host you would use the following command:

```
Expand All @@ -22,12 +26,6 @@ rustup target add --toolchain stable-x86_64-unknown-linux-gnu aarch64-linux-andr

See [Platform Support](https://doc.rust-lang.org/nightly/rustc/platform-support.html) in the Rust documentation for more details. You will get a descriptive error message when the correct toolchain is not available, so we don't list all possible combinations here.

## Building

You need to have the correct Rust toolchain(s) installed. See [Install Rust](https://www.rust-lang.org/tools/install) to install Rust.

You can manage toolchains with rus

### CMake

Set `MLN_USE_RUST=ON` when generating a configuration with CMake.
Expand Down

0 comments on commit 6d848bb

Please sign in to comment.