initial Commit

This commit is contained in:
Pottington 2025-08-22 14:05:36 +02:00
parent 33f8abfa39
commit a121036d42
4 changed files with 28 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

6
Cargo.toml Normal file
View File

@ -0,0 +1,6 @@
[package]
name = "RustTraining"
version = "0.1.0"
edition = "2021"
[dependencies]

View File

@ -1 +1,18 @@
todo # Rust Example Project
Dieses Repo soll zeige, wie man Rust Projecte mit dem Cargo Builder strukturiert anlegt, verwaltet und dokumentiert.
### Anlegen und Repo initialisieren
Zu erst muss das Repo angelegt werden und mit Cargo die Ordner struktur für Rust erstellt werden.
**Wenn ein neuer Ordner erstellt werden soll**
<code>
cargo new myNewProject
</code>
**Wenn Bereits ein Ordner existiert**
<code>
cd myExistingFolder
cargo init
</code>

3
src/main.rs Normal file
View File

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