From 056bb2f96ce74fdb24ef7e5b59bca21ffc24391c Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Fri, 29 Dec 2023 17:06:22 +0200 Subject: [PATCH] rust example working, clean up --- .gitignore | 1 + README.md | 12 ++++++++++++ {thermalcamdecoder => thermaldecoder}/Cargo.lock | 0 {thermalcamdecoder => thermaldecoder}/Cargo.toml | 0 {thermalcamdecoder => thermaldecoder}/src/lib.rs | 0 {thermalcamdecoder => thermaldecoder}/src/main.rs | 0 6 files changed, 13 insertions(+) rename {thermalcamdecoder => thermaldecoder}/Cargo.lock (100%) rename {thermalcamdecoder => thermaldecoder}/Cargo.toml (100%) rename {thermalcamdecoder => thermaldecoder}/src/lib.rs (100%) rename {thermalcamdecoder => thermaldecoder}/src/main.rs (100%) diff --git a/.gitignore b/.gitignore index 85aecf6..3357967 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /venv /frames **/*.png +thermaldecoder/target diff --git a/README.md b/README.md index a66b206..92ec13f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ ### Thermal decoder https://wiki.telavivmakers.org/tamiwiki/projects/thermalcam + + +### Rust lib usage + +# if you don't already have a virtualenv. Linux specific, adjust to your OS. +```bash +virtualenv venv +. venv/bin/activate +pip install -r requirements.txt +(cd thermaldecoder; maturin develop -r) +python test_rust.py +``` diff --git a/thermalcamdecoder/Cargo.lock b/thermaldecoder/Cargo.lock similarity index 100% rename from thermalcamdecoder/Cargo.lock rename to thermaldecoder/Cargo.lock diff --git a/thermalcamdecoder/Cargo.toml b/thermaldecoder/Cargo.toml similarity index 100% rename from thermalcamdecoder/Cargo.toml rename to thermaldecoder/Cargo.toml diff --git a/thermalcamdecoder/src/lib.rs b/thermaldecoder/src/lib.rs similarity index 100% rename from thermalcamdecoder/src/lib.rs rename to thermaldecoder/src/lib.rs diff --git a/thermalcamdecoder/src/main.rs b/thermaldecoder/src/main.rs similarity index 100% rename from thermalcamdecoder/src/main.rs rename to thermaldecoder/src/main.rs