Extended cargo installation instructions (#4168)

Co-authored-by: Henneberg <Henneberg@rohr2.de>
Co-authored-by: Yip Coekjan <69834864+Coekjan@users.noreply.github.com>
This commit is contained in:
Julian Henneberg 2024-05-25 17:30:42 +02:00 committed by GitHub
parent 374b82f8ca
commit 794a215514
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -118,13 +118,16 @@ Typst's CLI is available from different sources:
- macOS: `brew install typst` - macOS: `brew install typst`
- Windows: `winget install --id Typst.Typst` - Windows: `winget install --id Typst.Typst`
- If you have a [Rust][rust] toolchain installed, you can also install the - If you have a [Rust][rust] toolchain installed, you can install
latest development version with - the latest released Typst version with
`cargo install --git https://github.com/typst/typst --locked typst-cli`. Note that this `cargo install --locked typst-cli`
will be a "nightly" version that may be broken or not yet properly documented. - a development version with
`cargo install --git https://github.com/typst/typst --locked typst-cli`
- Nix users can use the `typst` package with `nix-shell -p typst` or build and - Nix users can
run the bleeding edge version with `nix run github:typst/typst -- --version`. - use the `typst` package with `nix-shell -p typst`
- build and run a development version with
`nix run github:typst/typst -- --version`.
- Docker users can run a prebuilt image with - Docker users can run a prebuilt image with
`docker run -it ghcr.io/typst/typst:latest`. `docker run -it ghcr.io/typst/typst:latest`.