From 39f8bb16879be6d1315ae0a167bee2559c52c963 Mon Sep 17 00:00:00 2001 From: HerringtonDarkholme <2883231+HerringtonDarkholme@users.noreply.github.com> Date: Sun, 8 Jan 2023 13:12:25 +0800 Subject: [PATCH] chore: add xtask scripts --- .cargo/config.toml | 3 +++ Cargo.lock | 4 ++++ Cargo.toml | 3 ++- scripts/version.js | 0 xtask/Cargo.toml | 8 ++++++++ xtask/src/main.rs | 3 +++ 6 files changed, 20 insertions(+), 1 deletion(-) delete mode 100644 scripts/version.js create mode 100644 xtask/Cargo.toml create mode 100644 xtask/src/main.rs diff --git a/.cargo/config.toml b/.cargo/config.toml index eb0d042b..fa4c7745 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -13,3 +13,6 @@ rustflags = [ [target.aarch64-unknown-linux-musl] linker = "aarch64-linux-musl-gcc" rustflags = ["-C", "target-feature=-crt-static"] + +[alias] +xtask = "run --manifest-path ./xtask/Cargo.toml --" diff --git a/Cargo.lock b/Cargo.lock index 2917545f..1fc9075e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1645,3 +1645,7 @@ name = "windows_x86_64_msvc" version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" + +[[package]] +name = "xtask" +version = "0.0.0" diff --git a/Cargo.toml b/Cargo.toml index 5c45553a..47f2f88b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,5 @@ [workspace] members = [ -"crates/*" + "crates/*", + "xtask" ] diff --git a/scripts/version.js b/scripts/version.js deleted file mode 100644 index e69de29b..00000000 diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml new file mode 100644 index 00000000..9232fde1 --- /dev/null +++ b/xtask/Cargo.toml @@ -0,0 +1,8 @@ +[package] +publish = false +edition = "2021" +name = "xtask" +version = "0.0.0" +authors = ["Herrington Darkholme"] + +[dependencies] diff --git a/xtask/src/main.rs b/xtask/src/main.rs new file mode 100644 index 00000000..37ace271 --- /dev/null +++ b/xtask/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("hello") +}