docs / guide / The Cajeta Guide
Chapters — 1. Installation
- Introduction
- 0. Introduction
- 1. Installation
- 2. Kick the tires
- 3. Your first project
- 4. Running your application
- 5. Debugging
- 6. Keywords
- 7. Comments
- 8. Native types
- 9. Type kinds
- 10. Allocation
- 11. Ownership & borrowing
- 12. Control flow
- 13. Strings & formatting
- 14. Templates & wildcards
- 15. Lambdas & captures
- 16. Operator overloading
- 17. Inheritance
- 18. Annotations & synthesis
- 19. DI & aspects
- 20. Error handling
- 21. Reflection
- 22. Differentiation
- 23. Code coverage
- 23. Profiling
- 24. Notebooks
- 25. Writing XPU Kernels
01 — Installation
Two ways in: cvm (the toolchain manager) or building from source.
With cvm
cvm installs and switches Cajeta toolchains the way rustup does for Rust.
It lives in tools/cvm, and ships as a prebuilt binary
with every release.
Get cvm
No cvm binary shipped with v0.46.3. Build it from source — see
tools/cvm — or use the
latest release.
Use cvm
cvm install latest # download, verify checksum, install, activate
cvm default <version> # switch the active toolchain
cvm which # show the cvm home + active shim
cvm doctor # diagnose the environment cvm sees
Toolchains install under ~/.cajeta/versions/<version>/; the active cajeta
shim goes on your PATH. cvm self update updates cvm itself.
From source
git clone https://github.com/jklappenbach/cajeta.git
cd cajeta
./setup.sh # toolchain prerequisites (LLVM, ANTLR, CMake, Ninja)
./build.sh # builds the compiler
The binary lands at build/src/cajeta. On Windows use setup.cmd and
build.cmd.
Verify
$ cajeta --version
cajeta 0.8.0 (8190ee59)
Any version string means you’re installed. Platform packages (.deb, .rpm,
.msi, macOS bundles) are on the roadmap; today it’s cvm or source.
Next: Kick the tires.