{"tool":"cargo","tool_display":"Cargo","intent":"create-init-new-rust-project","intent_display":"create init new rust project","title":"Cargo Command: create init new rust project","command_string":"cargo init --<bin|lib> <path/to/directory>","raw_command_string":"cargo init --{{bin|lib}} {{path/to/directory}}","description":"Exact CLI syntax to create init new rust project using Cargo.","usage_scenario":"When starting a new project requiring either a binary or library structure.","scenario_context":"Easily start a new Rust project with Cargo by specifying binary or library type.","simulated_output":"Creating new Rust project at 'path/to/directory'  \n   Project name: my_project  \n   Type: Binary / Library  \n\nProject initialized successfully.","how_to_steps":["Run the command: cargo init --bin path/to/directory or cargo init --lib path/to/directory","Navigate to the specified directory: cd path/to/directory","Check if the project files are created: ls -la"],"inferred_category":"Package Management","canonical_url":"https://www.syntaxstandard.com/cargo/create-init-new-rust-project"}