{"tool":"cargo","tool_display":"Cargo","intent":"build-package-in-release-mode","intent_display":"build package in release mode","title":"Cargo Command: build package in release mode","command_string":"cargo rustc -r","raw_command_string":"cargo rustc {{[-r|--release]}}","description":"Exact CLI syntax to build package in release mode using Cargo.","usage_scenario":"When producing binary distributions where performance is crucial.","scenario_context":"Building in release mode optimizes performance for production environments efficiently.","simulated_output":"Finished release [optimized] target(s) in 0.15s\n\\  Building package `my_crate v0.1.0`\n\\  Running `target/release/my_crate`\n\\  Optimized for release!","how_to_steps":["Run `cargo rustc --release` to build the package in release mode.","Check the `target/release` directory to verify the output executable exists."],"inferred_category":"Package Management","canonical_url":"https://www.syntaxstandard.com/cargo/build-package-in-release-mode"}