diff --git a/Cargo.toml b/Cargo.toml index f6ba974..49e45fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,15 +1,4 @@ -[package] -name = "heliwatch" -version = "0.1.0" -edition = "2021" - -[dependencies] -futures = "0.3" -tokio = { version = "1", features = ["full"] } -reqwest = { version = "0.11", features = ["json"] } -serde = { version = "1", features = ["derive"] } -serde_json = "1" -geo = "0.18" -csv = "1.1" -tokio-xmpp = "3" -xmpp-parsers = "0.18" +[workspace] +members = [ + "heliwatch", +] diff --git a/flake.nix b/flake.nix index f96ec4a..f22a56a 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,7 @@ packages.heliwatch = naersk-lib.buildPackage { pname = "heliwatch"; root = ./.; + src = ./heliwatch; nativeBuildInputs = with pkgs; [ pkg-config ]; buildInputs = with pkgs; [ openssl ]; }; diff --git a/heliwatch/Cargo.toml b/heliwatch/Cargo.toml new file mode 100644 index 0000000..f6ba974 --- /dev/null +++ b/heliwatch/Cargo.toml @@ -0,0 +1,15 @@ +[package] +name = "heliwatch" +version = "0.1.0" +edition = "2021" + +[dependencies] +futures = "0.3" +tokio = { version = "1", features = ["full"] } +reqwest = { version = "0.11", features = ["json"] } +serde = { version = "1", features = ["derive"] } +serde_json = "1" +geo = "0.18" +csv = "1.1" +tokio-xmpp = "3" +xmpp-parsers = "0.18" diff --git a/src/adsb.rs b/heliwatch/src/adsb.rs similarity index 100% rename from src/adsb.rs rename to heliwatch/src/adsb.rs diff --git a/src/aircrafts.rs b/heliwatch/src/aircrafts.rs similarity index 100% rename from src/aircrafts.rs rename to heliwatch/src/aircrafts.rs diff --git a/src/jabber.rs b/heliwatch/src/jabber.rs similarity index 100% rename from src/jabber.rs rename to heliwatch/src/jabber.rs diff --git a/src/location.rs b/heliwatch/src/location.rs similarity index 100% rename from src/location.rs rename to heliwatch/src/location.rs diff --git a/src/main.rs b/heliwatch/src/main.rs similarity index 100% rename from src/main.rs rename to heliwatch/src/main.rs