Rust project structure

This commit is contained in:
Piotr Mikołajczyk
2024-09-26 17:09:34 +02:00
parent 8b85ab81c2
commit 72724432a9
5 changed files with 28 additions and 0 deletions

7
Cargo.lock generated Normal file
View File

@@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "playground"
version = "0.1.0"

7
Cargo.toml Normal file
View File

@@ -0,0 +1,7 @@
[package]
name = "playground"
version = "0.1.0"
edition = "2021"
authors = ["Piotr Mikołajczyk <piomiko41@gmail.com>"]
[dependencies]

4
rust-toolchain.toml Normal file
View File

@@ -0,0 +1,4 @@
[toolchain]
channel = "1.79"
components = [ "rustfmt", "clippy", "rust-src" ]
targets = [ "x86_64-unknown-linux-gnu" ]

7
rustfmt.toml Normal file
View File

@@ -0,0 +1,7 @@
edition = "2021"
use_field_init_shorthand = true
reorder_modules = true
imports_granularity = "Crate"
group_imports = "StdExternalCrate"
reorder_imports = true

3
src/main.rs Normal file
View File

@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}