pub(crate) const GN_TOOLCHAIN_SUFFIX_PREFIX: &str = "(//build/toolchain";
Expand description

Fully qualified GN targets have a toolchain suffix like //foo:bar(//path/to/toolchain:target). We need to remove these suffices from targets when looking them up in our JSON metadata because cargo-gnaw doesn’t emit toolchains in its metadata.

Fuchsia’s toolchains are by convention all currently defined under //build/toolchain.