-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e19df79
commit 4889912
Showing
5 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"[toml]": { | ||
"editor.formatOnSave": false | ||
// ^^ because of src/template/rust-toolchain.toml and the toml formatter not playing well with the weird template things I added | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ version = "0.1.0" | |
edition = "{?TOOLCHAIN.EDITION}" | ||
|
||
[dependencies] | ||
{?CRATES} | ||
{?CRATES} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/usr/bin/env bash | ||
CI=1 | ||
cd "$(dirname "$0")" | ||
# shellcheck shell=bash | ||
cd "$(dirname "$0")" || exit | ||
cargo generate-lockfile --verbose | ||
"$CARGO_BIN_FILE_CARGO_LOCAL_REGISTRY" local-registry --sync Cargo.lock crates > /dev/null 2>&1 | ||
# ^^^ is super jank, but it expects that the first argument is the provided subcommand of cargo. | ||
"$CARGO_BIN_FILE_CARGO_LOCAL_REGISTRY" local-registry --sync Cargo.lock crates >/dev/null 2>&1 | ||
# ^^^ is super jank, but it expects that the first argument is local-registry and acts strangely otherwise | ||
|
||
mv crates/* . | ||
if [[ "$1" != "save" ]]; then | ||
rm Cargo.lock Cargo.toml rust-toolchain.toml src/main.rs .cargo/config.toml build.sh | ||
rm -d src .cargo crates | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[toolchain] | ||
[toolchain] # to be honest, probably only targets is required(can someone confirm?), but i'm not taking chances | ||
channel = "{?TOOLCHAIN.CHANNEL}" | ||
components = [ {?TOOLCHAIN.COMPONENTS} ] | ||
targets = [ {?TOOLCHAIN.TARGETS} ] |