Browse Source

Rust project structure

main
Piotr Mikołajczyk 6 months ago
parent
commit
72724432a9
No known key found for this signature in database GPG Key ID: 7ADA31326DE28EC7
5 changed files with 28 additions and 0 deletions
  1. +7
    -0
      Cargo.lock
  2. +7
    -0
      Cargo.toml
  3. +4
    -0
      rust-toolchain.toml
  4. +7
    -0
      rustfmt.toml
  5. +3
    -0
      src/main.rs

+ 7
- 0
Cargo.lock

@ -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
- 0
Cargo.toml

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

+ 4
- 0
rust-toolchain.toml

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

+ 7
- 0
rustfmt.toml

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

+ 3
- 0
src/main.rs

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

Loading…
Cancel
Save