Title: Theory / Unimportant / CS / Programming / Rust / Tutorial / Cargo
Tags: computer_to_instruction seen_description type

Name: Cargo
Definition: Rust dependency manager and build tool
Page: https://doc.rust-lang.org/book/ch00-00-introduction.html
Chapter: 0

Instruction: cargo new foo
Page: https://doc.rust-lang.org/book/ch00-00-introduction.html
Effect: Create a new directory for rust project name foo
Language: rust
Chapter: 0

Fla: --vcs=foo
Effect: Indicate that the project will use vcs foo
Page: https://doc.rust-lang.org/book/ch00-00-introduction.html
Prefix: cargo new
Chapter: 0

Name: crate
Definition: A package of code
Page: https://doc.rust-lang.org/book/ch00-00-introduction.html
Chapter: 0
Context: cargo

Instruction: cargo build
Page: https://doc.rust-lang.org/book/ch00-00-introduction.html
Effect: build the project
Language: cargo
Chapter: 0

Instruction: cargo run
Page: https://doc.rust-lang.org/book/ch00-00-introduction.html
Effect: run the project
Language: cargo
Chapter: 0

Instruction: cargo check
Page: https://doc.rust-lang.org/book/ch00-00-introduction.html
Effect: Check the code compile
Language: cargo
Chapter: 0

Fla: --release
Effect: optimize code output
Page: https://doc.rust-lang.org/book/ch00-00-introduction.html
Prefix: cargo build
Chapter: 0

Instruction: foo = "bar"
Page: https://doc.rust-lang.org/book/ch00-00-introduction.html
Effect: The project uses crate foo with version bar
Language: Cargo.toml dependencies
Chapter: 0

Instruction: foo = "^bar"
Page: https://doc.rust-lang.org/book/ch00-00-introduction.html
Effect: The project uses crate foo with any version compatible with the API of bar
Language: Cargo.toml dependencies
Chapter: 0

Typ: Cargo.lock
Meaning: Associate to each dependencies a version number. This version will be used until update is explicit
Page: https://doc.rust-lang.org/book/ch00-00-introduction.html
Language: Cargo.toml dependencies
Chapter: 0

Instruction: cargo update
Page: https://doc.rust-lang.org/book/ch00-00-introduction.html
Effect: Change Cargo.lock to contains the latest version
Language: Cargo.toml dependencies
Chapter: 0

Instruction: panic = 'abort'
Page: https://doc.rust-lang.org/book/ch09-01-unrecoverable-errors-with-panic.html
Language: Rust cargo.toml
Chapter: 9
Returns: In case of panic, just abort everything

Instruction: [profile.foo]
Page: https://doc.rust-lang.org/book/ch14-01-release-profiles.html
Effect: All remaining instructions apply to profile foo until further notice
Language: Rust cargo.toml
Chapter: 14

Variable: opt-level
Meaning: How much optimization the compiler add, between 0 and 3
Page: https://doc.rust-lang.org/book/ch14-01-release-profiles.html
Language: Rust cargo.toml
Chapter: 14

Instruction: [package]
Page: https://doc.rust-lang.org/book/ch14-02-publishing-to-crates-io.html
Effect: The following indication describe the current package
Language: Rust Cargo.toml
Chapter: 14

Variable: name
Meaning: A name fo the package
Page: https://doc.rust-lang.org/book/ch14-02-publishing-to-crates-io.html
Language: Rust Cargo.toml package
Chapter: 14

Variable: License
Meaning: The license used
Page: https://doc.rust-lang.org/book/ch14-02-publishing-to-crates-io.html
Language: Rust Cargo.toml package
Chapter: 14

Variable: version
Meaning: A version number
Page: https://doc.rust-lang.org/book/ch14-02-publishing-to-crates-io.html
Language: Rust Cargo.toml package
Chapter: 14

Variable: edition
Meaning: ?
Page: https://doc.rust-lang.org/book/ch14-02-publishing-to-crates-io.html
Language: Rust Cargo.toml package
Chapter: 14

Variable: Description
Meaning: A long descsription of the package
Page: https://doc.rust-lang.org/book/ch14-02-publishing-to-crates-io.html
Language: Rust Cargo.toml [package]
Chapter: 14

Variable: authors
Meaning: A list of authors
Page: https://doc.rust-lang.org/book/ch14-02-publishing-to-crates-io.html
Language: Rust Cargo.toml [package]
Chapter: 14

Instruction: publish
Page: https://doc.rust-lang.org/book/ch14-02-publishing-to-crates-io.html
Effect: publish to crates.io
Language: cargo
Chapter: 14

Instruction: yank --version v
Page: https://doc.rust-lang.org/book/ch14-02-publishing-to-crates-io.html
Effect: Indicates to crates.io that version v should not be used
Language: Sh
Context: cargo
Chapter: 14

Name: A workspace
Definition: a set of packages that share the same Cargo.lock and output directory.
Page: https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html
Chapter: 14
Context: cargo

Variable: members
Meaning: List of binary package
Page: https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html
Language: Cargo.toml
Chapter: 14

Instruction: [workspace]
Page: https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html
Effect: Indicate that the remaining are parameters of a workspace
Language: Cargo.toml
Chapter: 14

Instruction: run -p foo
Page: https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html
Effect: run the binary from package foo
Language: cargo
Chapter: 14

Instruction: install foo
Page: https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html
Effect: Install binary crate foo locall
Language: cargo
Chapter: 14

Instruction: foo
Page: https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html
Effect: equivalent of running `cargo-foo`
Language: cargo
Chapter: 14

Instruction: cargo fmt
Page: https://doc.rust-lang.org/book/appendix-04-useful-development-tools.html
Effect: Reformat code of this project
Context: Rust
Chapter: 21

Instruction: cargo fix
Page: https://doc.rust-lang.org/book/appendix-04-useful-development-tools.html
Effect: Apply suggestion from the compiler
Context: Rust
Chapter: 21

Instruction: cargo clippy
Page: https://doc.rust-lang.org/book/appendix-04-useful-development-tools.html
Effect: Analyze the code and warn of common error
Context: Rust
Chapter: 21

Name: Rust edition
Definition: A big change of rust, in particular may allow new reserved words/syntax.
Page: https://doc.rust-lang.org/book/appendix-04-useful-development-tools.html
Chapter: 21
Context: Rust