From 14e5fb3d6c570bb8cb7fa3c1fd5dac01045dd004 Mon Sep 17 00:00:00 2001 From: Nico Wagner Date: Mon, 8 Jul 2024 18:23:11 +0200 Subject: [PATCH] Add `datapod` skeleton Signed-off-by: Nico Wagner --- Cargo.lock | 7 +++++++ Cargo.toml | 15 ++++++++++++++- Makefile | 8 +++++++- crates/datapod/.gitignore | 1 + crates/datapod/Cargo.toml | 10 ++++++++++ crates/datapod/src/main.rs | 3 +++ 6 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 crates/datapod/.gitignore create mode 100644 crates/datapod/Cargo.toml create mode 100644 crates/datapod/src/main.rs diff --git a/Cargo.lock b/Cargo.lock index ec236a6..efc0f9b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,13 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "datapod" +version = "0.1.0" +dependencies = [ + "dataset", +] + [[package]] name = "dataset" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index cf497eb..77467c1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,25 @@ [package] name = "dataset" -version = "0.1.0" +authors = ["Nico Wagner "] edition = "2021" license = "EUPL-1.2" rust-version = "1.79.0" +version = "0.1.0" [[bin]] name = "dataset" path = "src/bin/main.rs" [dependencies] + +[workspace] +members = ["crates/datapod"] +resolver = "2" + +[workspace.package] +authors = ["Nico Wagner "] +edition = "2021" +license = "EUPL-1.2" +rust-version = "1.79.0" + +[workspace.dependencies] diff --git a/Makefile b/Makefile index 8abb4bc..8a1b530 100644 --- a/Makefile +++ b/Makefile @@ -30,13 +30,19 @@ check-fmt: $(CARGO) fmt --all -- --check release: - $(CARGO) build --features performant --release + $(CARGO) build --release --workspace + +dev-install: + $(CARGO) install --debug -q --path crates/datapod --bin datapod + $(CARGO) install --debug -q --path . --bin dataset install: install -Dm755 target/release/dataset $(DESTDIR)$(BINDIR)/dataset + install -Dm755 target/release/datapod $(DESTDIR)$(BINDIR)/datapod uninstall: rm -f $(DESTDIR)$(BINDIR)/dataset + rm -f $(DESTDIR)$(BINDIR)/datapod .PHONY: build clean docs check test clippy check-fmt release install uninstall diff --git a/crates/datapod/.gitignore b/crates/datapod/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/crates/datapod/.gitignore @@ -0,0 +1 @@ +/target diff --git a/crates/datapod/Cargo.toml b/crates/datapod/Cargo.toml new file mode 100644 index 0000000..17cda98 --- /dev/null +++ b/crates/datapod/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "datapod" +version = "0.1.0" +authors.workspace = true +license.workspace = true +edition.workspace = true +rust-version.workspace = true + +[dependencies] +dataset = { path = "../../" } diff --git a/crates/datapod/src/main.rs b/crates/datapod/src/main.rs new file mode 100644 index 0000000..64ccad5 --- /dev/null +++ b/crates/datapod/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + eprintln!("datapod"); +}