{"record":{"id":"1894d8e6c9c5a167","repo":"tauri-apps/tauri","slug":"unexpected-input-expected-one-of-rename-all-r","errorCode":null,"errorMessage":"unexpected input, expected one of `rename_all`, `rename`, `root`, `async`","messagePattern":"unexpected input, expected one of `rename_all`, `rename`, `root`, `async`","errorType":"exception","errorClass":"syn::Error","httpStatus":null,"severity":"error","filePath":"crates/tauri-macros/src/command/wrapper.rs","lineNumber":110,"sourceCode":"          } else if v.path.is_ident(\"root\") {\n            if let Expr::Lit(ExprLit {\n              lit: Lit::Str(s),\n              attrs: _,\n            }) = v.value\n            {\n              let lit = s.value();\n\n              wrapper_attributes.root = if lit == \"crate\" {\n                quote!($crate)\n              } else {\n                let ident = Ident::new(&lit, Span::call_site());\n                quote!(#ident)\n              };\n            }\n          }\n        }\n        WrapperAttributeKind::Meta(Meta::Path(_)) => {\n          return Err(syn::Error::new(\n            input.span(),\n            \"unexpected input, expected one of `rename_all`, `rename`, `root`, `async`\",\n          ));\n        }\n        WrapperAttributeKind::Async => {\n          wrapper_attributes.execution_context = ExecutionContext::Async;\n        }\n      }\n    }\n\n    Ok(wrapper_attributes)\n  }\n}\n\n/// The execution context of the command.\nenum ExecutionContext {\n  Async,\n  Blocking,","sourceCodeStart":92,"sourceCodeEnd":128,"githubUrl":"https://github.com/tauri-apps/tauri/blob/460ec35447493200d64290dd7f015d5a91d0fd58/crates/tauri-macros/src/command/wrapper.rs#L92-L128","documentation":"Compile-time syn::Error raised by the #[tauri::command] macro's attribute parser when an unrecognized attribute argument appears in the command wrapper attribute list. Only the literal attributes rename_all, rename, root and async are accepted; any other bare path attribute (a Meta::Path) triggers this error at proc-macro expansion time.","triggerScenarios":"Typing an unsupported key in the command attribute, e.g. #[tauri::command(window)], #[tauri::command(fast)], or a misspelled key like renameall = \"camelCase\" (parsed as a path) — anything Meta::Path.","commonSituations":"Typos in supported attribute names; copying attributes from other macros (e.g. serde, wasm_bindgen) onto tauri::command; forgetting the '= value' part so a name-value becomes a path.","solutions":["Use only supported keys: rename_all = \"...\", rename = \"...\", root = ..., or the bare flag async","Fix the typo so the key matches a supported identifier exactly","Remove extraneous attributes not part of the Tauri command macro"],"exampleFix":"// before\n#[tauri::command(renameall = \"camelCase\")]\n// after\n#[tauri::command(rename_all = \"camelCase\")]","handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":["Memorize the supported set: rename_all, rename, root, async","Fix typos — a misspelled key=value reads as an unknown path attribute","Don't copy foreign macro attributes onto #[tauri::command]"],"tags":["proc-macro","tauri","compile-time","attributes"],"backgroundTag":"invalid-argument-value","analyzedSha":"460ec35447493200d64290dd7f015d5a91d0fd58","analyzedAt":"2026-09-18T23:55:51.277Z","contentChangedAt":"2026-09-18T23:55:51.277Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}