Skip to content

Commit a1c4c31

Browse files
committed
Fix cargo build target directory
1 parent a0d38fd commit a1c4c31

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.cargo/config.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

shell.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ let
2323

2424
build = pkgs.writers.writeBashBin "build" ''
2525
cd ${toString ./src}
26-
cargo build
26+
cargo build $@
2727
'';
2828

2929
run = pkgs.writers.writeBashBin "run" ''
3030
cd ${toString ./src}
31-
cargo run
31+
cargo run $@
3232
'';
3333

3434
utils = [
@@ -39,6 +39,7 @@ let
3939
in pkgs.mkShell rec {
4040
RUSTC_VERSION = readFileIfExists ./rust-toolchain;
4141
CARGO_HOME = toString ./.build/cargo;
42+
CARGO_TARGET_DIR= toString ./.build/target;
4243
RUSTUP_HOME = toString ./.build/rustup;
4344
TABLETBOT_DATA = toString ./.build/data;
4445

0 commit comments

Comments
 (0)