Skip to content

Commit ef707f7

Browse files
committed
build: simplify devbox configuration and scripts
- Remove unnecessary Rust tools from devbox configuration - Simplify the devbox shell initialization script - Update the devbox test script
1 parent f4352de commit ef707f7

3 files changed

Lines changed: 55 additions & 202 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

devbox.json

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
11
{
2-
"packages": [
3-
"rustc@latest",
4-
"rustfmt@latest",
5-
"cargo@latest",
6-
"rust-analyzer@latest",
7-
"clippy@latest",
8-
"libiconv@latest",
9-
"vscode-extensions.llvm-org.lldb-vscode@latest",
2+
"packages": [
3+
"rustc@latest",
4+
"cargo@latest",
5+
"rust-analyzer@latest"
6+
],
7+
"shell": {
8+
"init_hook": [
9+
"echo 'Welcome to devbox!' > /dev/null"
1010
],
11-
"shell": {
12-
"init_hook": [
13-
"projectDir=$PWD",
14-
"cargoHome=\"$projectDir\"/.direnv/cargo",
15-
"mkdir -p $cargoHome",
16-
"export CARGO_HOME=$cargoHome",
17-
"export LIBRARY_PATH=$LIBRARY_PATH:\"$projectDir/.devbox/nix/profile/default/lib\"",
18-
"export PATH=$PATH:$projectDir/target/release",
19-
],
20-
"scripts": {
21-
"test": "cargo test -- --show-output",
22-
"start" : "cargo run",
23-
"build-docs": "cargo doc"
24-
}
11+
"scripts": {
12+
"test": [
13+
"echo \"Error: no test specified\" && exit 1"
14+
]
2515
}
16+
}
2617
}

0 commit comments

Comments
 (0)