Rust, VSCode

https://levelup.gitconnected.com/rust-with-visual-studio-code-46404befed8

❯ mkdir -p ~/coding/rust
❯ cd ~/coding/rust
❯ cargo new HelloWorld
Created binary (application) `HelloWorld` package


cargo new HelloWorld --bin

crate `HelloWorld` should have a snake case name
note: `#[warn(non_snake_case)]` on by default
help: convert the identifier to snake case: `hello_world`

To correct this issue, open Cargo.toml and change name entry to snake case

[package]
name = “hello_world”
....

Комментарии