commit d7474bce340d002f9c4599612f518ab180c247ec Author: rmanach Date: Fri Oct 24 09:11:57 2025 +0200 init repository diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..e5cdbf3 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "rs-optimg" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..0e3d191 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "rs-optimg" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8557400 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST)))) + +VERSION := $(shell cargo info rs-optimg | grep "^version" | cut -d ' ' -f2 | xargs) +LOG_LEVEL := debug + +show: + @echo "rsympa version: $(VERSION)" + +lint: + cargo clippy --fix --allow-dirty + +format: + cargo fmt --all + +check: lint format + +doc: + cargo doc -r --no-deps --open + +run: check + RUST_LOG=$(LOG_LEVEL) cargo run - --debug + +build: check + cargo build --release + +test: + cargo test --no-fail-fast --lib --tests \ No newline at end of file diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}