{"record":{"id":"abc38171cc0751d7","repo":"jdx/mise","slug":"rust-s-mr-boxington-option-requires-mr-boxington-i","errorCode":null,"errorMessage":"rust's mr_boxington option requires mr-boxington in [tools]; add `mr-boxington = \"latest\"`","messagePattern":"rust's mr_boxington option requires mr-boxington in \\[tools\\]; add `mr-boxington = \"latest\"`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/config/command_wrapper.rs","lineNumber":85,"sourceCode":"        .find(|tool| tool.ba().full() == \"core:rust\")\n        .is_some_and(|rust| {\n            // Match explicit wrappers: safe mode cannot activate project commands.\n            let safe = !crate::config::Settings::safe_mode()\n                || rust\n                    .source()\n                    .path()\n                    .is_none_or(crate::config::is_global_config);\n            safe && BackendOptions::new(&rust.options()).bool(\"mr_boxington\")\n        });\n    if !enabled {\n        return Ok(());\n    }\n    let mbx = BackendArg::from(\"mr-boxington\");\n    if !tools\n        .iter()\n        .any(|tool| tool.ba().short == mbx.short || tool.ba().full() == mbx.full())\n    {\n        eyre::bail!(\n            \"rust's mr_boxington option requires mr-boxington in [tools]; add `mr-boxington = \\\"latest\\\"`\"\n        );\n    }\n    wrappers.insert(\n        \"cargo\".into(),\n        CommandWrapper::Detailed(CommandWrapperOptions {\n            command: \"mbx\".into(),\n            args: Vec::new(),\n            env: [(\"MBX_CARGO_SHIM_MODE\".into(), \"1\".into())].into(),\n        }),\n    );\n    Ok(())\n}\n","sourceCodeStart":67,"sourceCodeEnd":99,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/config/command_wrapper.rs#L67-L99","documentation":"mise's command wrapper supports a `mr_boxington` option for rust, which activates the mbx Cargo wrapper. That wrapper requires the mr-boxington tool itself to be declared in the project's [tools] section so mise can install it. If rust has `mr_boxington = ...` set but mr-boxington is absent from the tool list, add_rust_wrapper fails early with this message.","triggerScenarios":"A mise.toml with [tools] rust = { mr_boxington = true } (or equivalent option) but no `mr-boxington` entry in [tools]; checked in add_rust_wrapper by scanning the tools list for the mr-boxington BackendArg (short or full name).","commonSituations":"Copying a mise.toml from a repo that uses mbx without copying the mr-boxington tool entry; enabling the wrapper option in a new project and forgetting the companion tool; trimming '[unused]' tools and accidentally removing mr-boxington.","solutions":["Add `mr-boxington = \"latest\"` to the [tools] section of your mise.toml, then run `mise install`.","Alternatively, remove the `mr_boxington` option from the rust tool config if you do not want the wrapper.","Run `mise install` afterwards so the mr-boxington binary is present before cargo commands run."],"exampleFix":"# before (mise.toml)\n[tools]\nrust = { mr_boxington = true }\n\n# after\n[tools]\nrust = { mr_boxington = true }\nmr-boxington = \"latest\"","handlingStrategy":"validation","validationCode":"# Verify the pairing before enabling the option\n# mise.toml must contain BOTH:\n# [tools]\n# rust = { mr_boxington = true }\n# mr-boxington = \"latest\"\ngrep -q 'mr-boxington' mise.toml || echo 'add mr-boxington = \"latest\" to [tools]'","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Always add `mr-boxington = \"latest\"` alongside the rust mr_boxington option","Run `mise install` after editing [tools] so the wrapper binary exists","When copying mise.toml from another repo, copy all related tool entries"],"tags":["config","rust","tools","mise-toml"],"backgroundTag":"missing-dependency","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}