From 46cd75ec530cd6ac45f98db824f93fa3359c8212 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 29 Jan 2022 17:31:51 +0100 Subject: [PATCH] Add an xtask binary target for running tasks --- .cargo/config | 2 ++ Cargo.lock | 4 ++++ Cargo.toml | 2 +- xtask/Cargo.toml | 8 ++++++++ xtask/src/main.rs | 3 +++ 5 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .cargo/config create mode 100644 xtask/Cargo.toml create mode 100644 xtask/src/main.rs diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 00000000..35049cbc --- /dev/null +++ b/.cargo/config @@ -0,0 +1,2 @@ +[alias] +xtask = "run --package xtask --" diff --git a/Cargo.lock b/Cargo.lock index 5ea097a0..704f2b09 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -155,3 +155,7 @@ name = "widestring" version = "1.0.0-beta.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6f1efe828a707edf85994a4501734ac1c1b9d244cfcf4de235f11c4125ace8f" + +[[package]] +name = "xtask" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index f8806d04..49494be6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ authors = ["Robbert van der Helm "] license = "GPL-3.0-or-later" [workspace] -members = ["nih_plug_derive", "plugins/gain"] +members = ["nih_plug_derive", "plugins/gain", "xtask"] [dependencies] nih_plug_derive = { path = "nih_plug_derive" } diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml new file mode 100644 index 00000000..d9dff721 --- /dev/null +++ b/xtask/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "xtask" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/xtask/src/main.rs b/xtask/src/main.rs new file mode 100644 index 00000000..e7a11a96 --- /dev/null +++ b/xtask/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}