Create a project for demonstrating functions

This commit is contained in:
Manuel Thalmann 2024-10-14 18:21:54 +02:00
parent f98580a681
commit ad1c063af0
3 changed files with 22 additions and 0 deletions

7
functions/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 = "functions"
version = "0.1.0"

6
functions/Cargo.toml Normal file
View file

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

9
functions/src/main.rs Normal file
View file

@ -0,0 +1,9 @@
fn main() {
println!("Hello, world!");
another_function();
}
fn another_function() {
println!("Another function.");
}