Template for projects using the mos-hardware crate.
The project requires rust-mos and is setup to build for C64 by default. A docker image of rust-mos is available for x86 (mrkits/rust-mos) or for arm64 (mikaellund/rust-mos) if you're not up for the painful compilation of LLVM and Rust. See also llvm-mos wiki.
The easiest way is to use the provided .devcontainer.json
configuration for vscode.
Please edit it to match your architecture, e.g. x86 or arm64, see above.
- Configure Visual Studio Code with the Remote - Containers extension. From the command-line:
code --install-extension ms-vscode-remote.remote-containers
- Install and start Docker
- Open the project (e.g. with
code .
) and when asked, re-open in Dev container - In the vscode terminal type:
export CARGO_NET_GIT_FETCH_WITH_CLI=true # only if Docker uses qemu cargo build --release --target mos-c64-none