1 # aarch64-nintendo-switch-freestanding
5 Nintendo Switch with pure-Rust toolchain.
7 ## Designated Developers
9 * [@leo60228](https://github.com/leo60228)
10 * [@jam1garner](https://github.com/jam1garner)
14 This target is cross-compiled.
15 It has no special requirements for the host.
19 The target can be built by enabling it for a `rustc` build:
24 target = ["aarch64-nintendo-switch-freestanding"]
29 This target can be cross-compiled from any host.
33 Currently there is no support to run the rustc test suite for this target.
35 ## Building Rust programs
37 If `rustc` has support for that target and the library artifacts are available,
38 then Rust programs can be built for that target:
41 rustc --target aarch64-nintendo-switch-freestanding your-code.rs
44 To generate binaries in the NRO format that can be easily run on-device, you
45 can use [cargo-nx](https://github.com/aarch64-switch-rs/cargo-nx):
48 cargo nx --triple=aarch64-nintendo-switch-freestanding