-
Notifications
You must be signed in to change notification settings - Fork 0
/
devbox.json
32 lines (32 loc) · 1.09 KB
/
devbox.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"$schema": "https://raw.githubusercontent.com/jetpack-io/devbox/0.10.3/.schema/devbox.schema.json",
"packages": [
"rustup@latest",
"libiconv@latest",
"darwin.apple_sdk.frameworks.Security",
"darwin.apple_sdk.frameworks.SystemConfiguration",
"zig@latest",
"serverless@latest"
],
"shell": {
"init_hook": [
"projectDir=$(dirname $(readlink -f \"$0\"))",
"rustupHomeDir=\"$projectDir\"/.rustup",
"mkdir -p $rustupHomeDir",
"export RUSTUP_HOME=$rustupHomeDir",
"export LIBRARY_PATH=$LIBRARY_PATH:\"$projectDir/nix/profile/default/lib\"",
"export RUST_BACKTRACE=full",
"rustup default stable",
"cargo fetch"
],
"scripts": {
"test": "cargo test -- --show-output",
"start": "cargo run",
"lint": "cargo clippy --all-targets --all-features -- -D warnings",
"format": "cargo fmt --all",
"build-docs": "cargo doc",
"build": "cargo lambda build --release --extension --target x86_64-unknown-linux-musl",
"deploy": "cargo lambda deploy --extension"
}
}
}