From c5968aac43bca58876b02853db17d45c45a6e2d2 Mon Sep 17 00:00:00 2001
From: Federico Lolli <federico.lolli@skywarder.eu>
Date: Tue, 12 Mar 2024 12:33:37 +0100
Subject: [PATCH] Moved actual arpist on on-host folder

---
 .gitignore                       |  2 +-
 justfile                         | 19 +++++++++++++++++++
 Cargo.lock => on-host/Cargo.lock |  0
 Cargo.toml => on-host/Cargo.toml |  0
 {src => on-host/src}/main.rs     |  0
 {src => on-host/src}/packet.rs   |  0
 {src => on-host/src}/utils.rs    |  0
 7 files changed, 20 insertions(+), 1 deletion(-)
 create mode 100644 justfile
 rename Cargo.lock => on-host/Cargo.lock (100%)
 rename Cargo.toml => on-host/Cargo.toml (100%)
 rename {src => on-host/src}/main.rs (100%)
 rename {src => on-host/src}/packet.rs (100%)
 rename {src => on-host/src}/utils.rs (100%)

diff --git a/.gitignore b/.gitignore
index 16df9a2..339ab45 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,3 @@
-/target
+target/
 *.csv
 arpist
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..7522b84
--- /dev/null
+++ b/justfile
@@ -0,0 +1,19 @@
+export RUST_LOG := "debug"
+
+alias db := device-build
+alias hb := host-build
+
+default:
+    ./arpist gemini.csv
+
+host-build:
+    #!/bin/bash
+    cd on-host
+    cargo build --release
+    cp target/release/arpist ..
+
+device-build:
+    #!/bin/bash
+    cd ../../skyward-boardcore
+    # ./sbs -df mavlink-arpist
+    ./sbs -df sx1278fsk-s-mav-raw
diff --git a/Cargo.lock b/on-host/Cargo.lock
similarity index 100%
rename from Cargo.lock
rename to on-host/Cargo.lock
diff --git a/Cargo.toml b/on-host/Cargo.toml
similarity index 100%
rename from Cargo.toml
rename to on-host/Cargo.toml
diff --git a/src/main.rs b/on-host/src/main.rs
similarity index 100%
rename from src/main.rs
rename to on-host/src/main.rs
diff --git a/src/packet.rs b/on-host/src/packet.rs
similarity index 100%
rename from src/packet.rs
rename to on-host/src/packet.rs
diff --git a/src/utils.rs b/on-host/src/utils.rs
similarity index 100%
rename from src/utils.rs
rename to on-host/src/utils.rs
-- 
GitLab