Skip to main content

RenderDevLog

Function RenderDevLog 

Source
pub async fn RenderDevLog(
    Tag: Option<String>,
    Message: Option<String>,
    tag: Option<String>,
    message: Option<String>,
) -> Result<(), String>
Expand description

Accept BOTH casings for the tag/message parameter names so the JS caller doesn’t have to guess Tauri’s param-case transform. In Tauri v2 default convention, Rust snake_case params get mapped to/from JS camelCase; Rust PascalCase params are passed through case-sensitive. Callers that send { Tag, Message } (PascalCase) and callers that send { tag, message } (snake_case) both work - the command coalesces whichever is populated. Empty → silent no-op.