jdx/mise · error
cargo-binstall cannot honor cargo install-only tool…
Error message
cargo-binstall cannot honor cargo install-only tool option(s): {options}
hint: Remove the option(s), or disable cargo.binstall_only to allow cargo install What it means
When cargo.binstall_only is set, `cargo install` is disallowed, so tool options that only cargo install understands (cargo_install_required_options, e.g. --features) cannot be honored by cargo-binstall's prebuilt-binary flow. mise detects this combination up front (for git-URL-free installs) and fails with the offending options listed.
Solutions
- Remove the cargo-install-only option(s) from the tool entry — the prebuilt binary doesn't support them (often a prebuilt-with-default-features binary is acceptable).
- Set cargo.binstall_only = false so mise can run `cargo install` with the options.
- If you need the feature-enabled build, build from source yourself or use a crate variant that ships the feature by default.
Example fix
# before (mise.toml)
[tools]
cargo:ripgrep = { version = "14", features = "pcre2" }
# after (with cargo.binstall_only = true)
[tools]
cargo:ripgrep = "14" # prebuilt binary; install-only options removed Defensive patterns
Strategy: validation
Validate before calling
# audit tool options vs binstall_only if grep -q 'binstall_only = true' settings.toml && grep -qE 'features|options' mise.toml; then echo 'install-only options present; drop them or disable binstall_only' fi
Prevention
- Treat [tool-options]-style entries (features, flags) as cargo-install-only and avoid them under binstall_only
- Prefer crates whose prebuilt binaries include needed features
- Keep team settings and per-tool options reviewed together
When it happens
Trigger: Installing cargo:<crate> with tool options that require cargo install (such as features=X) while cargo.binstall_only = true, the crate is not a git-URL install, and cargo_install_required_options is non-empty.
Common situations: User configures `cargo:mycrate = { version = '1.2', features = ['ssl'] }` (an option only meaningful for source builds) in a workspace where binstall_only is enforced; team policy file enabling binstall_only conflicts with per-tool feature options in mise.toml.
Understand the failure class
Background: Conflicting config options: "cannot be used together" — configuration validation errors across open-source libraries — this error's family across 162 libraries.
Related errors
- cargo-binstall is disabled, but cargo.binstall_only is set
- cargo-binstall is not available, but cargo.binstall_only is…
- native binstall metadata should have a package URL
- native cargo binary artifact did not contain
- native cargo binary artifact maps multiple bins to
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/4690322ccccb5769.
Report an issue: GitHub.
Appendix: source
Thrown at src/backend/cargo.rs:307
{
self.write_install_state_best_effort(&tv);
return Ok(tv.clone());
}
Some(_) => {}
None if native_binstall::rollout_warning_active() => {
self.native_binstall(ctx, &tv, NativeBinstallAction::WarnOnly)
.await?;
}
None => {}
},
_ => {}
}
} else if Settings::get().cargo.binstall_only
&& self.git_url().is_none()
&& !cargo_install_required_options.is_empty()
{
let options = format_tool_options(&cargo_install_required_options);
bail!(
"cargo-binstall cannot honor cargo install-only tool option(s): {options}\n\
hint: Remove the option(s), or disable cargo.binstall_only to allow cargo install"
);
} else if !cargo_install_required_options.is_empty() {
let options = format_tool_options(&cargo_install_required_options);
info!(
"not using cargo-binstall because cargo install-only tool option(s) are specified: {options}"
);
}
let mut cmd = CmdLineRunner::new(
self.spawn_program(&ctx.config, Some(&ctx.ts), "cargo")
.await,
)
.arg("install");
if let Some(url) = self.git_url() {
cmd = cmd.arg(format!("--git={url}"));
if let Some(rev) = tv.version.strip_prefix("rev:") {View on GitHub (pinned to 533346cc37)