# See the example config for more details on these settings: # https://github.com/rust-lang/rust/blob/master/config.toml.example [build] target = [ "@HOST_TRIPLE@", "x86_64-bottlerocket-linux-gnu", "x86_64-bottlerocket-linux-musl", ] docs = false compiler-docs = false vendor = true submodules = false extended = true tools = ["cargo", "clippy", "rustfmt"] [rust] channel = "stable" codegen-units = 1 codegen-units-std = 1 debuginfo-level-std = 2 rpath = false [llvm] static-libstdcpp = false [install] prefix = "/usr/libexec/rust" sysconfdir = "/usr/libexec/rust/etc" [target.x86_64-bottlerocket-linux-gnu] cc = "x86_64-bottlerocket-linux-gnu-gcc" cxx = "x86_64-bottlerocket-linux-gnu-g++" ar = "/usr/bin/x86_64-bottlerocket-linux-gnu-ar" ranlib = "/usr/bin/x86_64-bottlerocket-linux-gnu-ranlib" linker = "x86_64-bottlerocket-linux-gnu-gcc" crt-static = false [target.x86_64-bottlerocket-linux-musl] cc = "x86_64-bottlerocket-linux-musl-gcc" cxx = "x86_64-bottlerocket-linux-musl-g++" ar = "/usr/bin/x86_64-bottlerocket-linux-musl-ar" ranlib = "/usr/bin/x86_64-bottlerocket-linux-musl-ranlib" linker = "x86_64-bottlerocket-linux-musl-gcc" musl-root = "/x86_64-bottlerocket-linux-musl/sys-root/usr" crt-static = true