Trait Dictionary
Type Dictionary
Raw Level Rust
On Rust
wasm-bindgen
axum
warp
rustup -V
rustup self update
rustup update
rustup show
rustup target list
cargo clippy
cargo fmt
cargo tree
cargo update
PSA: writing “*” for crates in cargo.toml won’t always mean “latest version”
cargo edit の cargo upgrade を使うのがいいらしい
cargo new hoge
cargo new --lib hoge
gh repo create hoge
cargo init hoge
gh repo create hoge
cargo init --lib hoge
crate/src/bin ディレクトリを作成したあとに
crate/src/bin/hoge.rs を準備して
cargo run --bin hoge
crate/examples ディレクトリを作成したあとに
crate/examples/hoge.rs を準備して
cargo run --example hoge
cargo test
cargo build --release
sudo apt update
sudo apt full-upgrade
sudo apt install libssl-dev pkg-config
cargo install cargo-edit
cargo add rand
cargo add tokio --features full
cargo add web-sys --features "BinaryType Blob ErrorEvent FileReader"
cargo add hoge --git https://github.com/fuga/hoge
cargo add foo --git https://github.com/bar/foo --branch stable
# crates.io ではなく Git 上の Crate を利用している場合には, こちらも実行してから
cargo update
cargo upgrade
cargo rm hoge
cargo install cargo-update
cargo install-update --all
&self は self: &Self の Syntax Sugar
Self は呼び出し元の型
Associated functions & Methods
How to check release / debug builds using cfg in Rust?
cargo new hoge
cargo add tokio --features full
#[tokio::main]
async fn main() {
}
戻る
↓ 故障中