{"tool":"cargo","tool_display":"Cargo","intent":"build-rustc-specific-package","intent_display":"build rustc specific package","title":"Cargo Command: build rustc specific package","command_string":"cargo rustc -p <package>","raw_command_string":"cargo rustc {{[-p|--package]}} {{package}}","description":"Exact CLI syntax to build rustc specific package using Cargo.","usage_scenario":"When working with multi-package projects and wanting tight control over build processes.","scenario_context":"Build only the necessary package to optimize project compilation time.","simulated_output":"Finished dev [unoptimized + debuginfo] target(s) in 0.25s\n\n   Building package `example_package v0.1.0` in `target/debug/examples`\n   Compiling example_package v0.1.0 (path/to/example_package)\n   Finished debug [unoptimized + debuginfo] target(s) in 1.20s","how_to_steps":["Run the command: `cargo rustc --package example_package` to build the specified package.","Verify the build output in the `target/debug/examples` directory for errors or warnings."],"inferred_category":"Package Management","canonical_url":"https://www.syntaxstandard.com/cargo/build-rustc-specific-package"}