Created
November 30, 2024 16:02
-
-
Save monotykamary/d5f1c7a2851dd7ee4865d9d5cff7bf8a to your computer and use it in GitHub Desktop.
Devbox env setup for Zed editor contribution
This file contains hidden or 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
| { | |
| "packages": [ | |
| "rustup@latest", | |
| "libiconv@latest", | |
| "rustc-wasm32@latest", | |
| "wasmtime@latest", | |
| "cmake@latest" | |
| ], | |
| "shell": { | |
| "init_hook": [ | |
| "projectDir=$(dirname $(readlink -f \"$0\"))", | |
| "rustupHomeDir=\"$projectDir\"/.rustup", | |
| "mkdir -p $rustupHomeDir", | |
| "export RUSTUP_HOME=$rustupHomeDir", | |
| "export LIBRARY_PATH=$LIBRARY_PATH:\"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib\"", | |
| "export CPATH=$CPATH:\"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include\"", | |
| "export CXX=\"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++\"", | |
| "export CPLUS_INCLUDE_PATH=\"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1\"", | |
| "export DEVELOPER_DIR=\"/Applications/Xcode.app/Contents/Developer\"", | |
| "export SDKROOT=\"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk\"", | |
| "export TOOLCHAINS=\"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain\"", | |
| "rustup default stable", | |
| "cargo fetch" | |
| ], | |
| "scripts": { | |
| "test": "cargo test -- --show-output", | |
| "start": "cargo run", | |
| "build-docs": "cargo doc" | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment