Create tim_tool project
This commit is contained in:
9
src/Tools/tim_tool/Cargo.toml
Normal file
9
src/Tools/tim_tool/Cargo.toml
Normal file
@@ -0,0 +1,9 @@
|
||||
[package]
|
||||
name = "tim_tool"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[profile.release]
|
||||
panic = "abort"
|
||||
|
||||
[dependencies]
|
13
src/Tools/tim_tool/Makefile
Normal file
13
src/Tools/tim_tool/Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
include ../Common.mk
|
||||
|
||||
ARTIFACT = tim_tool
|
||||
|
||||
.PHONY: $(WINDOWS_ARTIFACT) $(UNIX_ARTIFACT)
|
||||
$(WINDOWS_ARTIFACT):
|
||||
$(call cargo_windows_default)
|
||||
|
||||
$(UNIX_ARTIFACT):
|
||||
$(call cargo_unix_default)
|
||||
|
||||
all-windows: $(WINDOWS_ARTIFACT)
|
||||
all: $(UNIX_ARTIFACT)
|
3
src/Tools/tim_tool/src/lib.rs
Normal file
3
src/Tools/tim_tool/src/lib.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
pub fn hello_world() {
|
||||
println!("Hello Planschi");
|
||||
}
|
3
src/Tools/tim_tool/src/main.rs
Normal file
3
src/Tools/tim_tool/src/main.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
tim_tool::hello_world();
|
||||
}
|
Reference in New Issue
Block a user