. "${GRIMOIRE}/config_query_multi.function" &&

local AVAILABLE_TOOLS="cargo
                       clippy
                       rustdoc
                       rustfmt
                       rust-analyzer
                       rust-analyzeri-proc-macro-srv
                       analysis
                       src
                       wasm-component-ld
                       miri
                       cargo-miri" &&

config_query_multi RUST_TOOLS \
     "which Rust tools to build" \
    default all none $AVAILABLE_TOOLS &&

if list_find "${RUST_TOOLS}" "all"; then
   RUST_TOOLS="${AVAILABLE_TOOLS}"
elif list_find "${RUST_TOOLS}" "none"; then
   RUST_TOOLS="none"
fi &&

RUST_TOOLS="${RUST_TOOLS# }"
