Prequery

Installation

If you plan to use the prequeryprequery CLI tool, you will need to install it on your system. This is not necessary to run other external tools in combination with the Prequery package.

Download from GitHub

You can download pre-built binaries of all stable versions from the release page of the CLI tool's GitHub repository, these are automatically built for Linux, Windows, and Mac. Nightly versions are not pre-built.

After you downloaded the correct archive for your operating system and architecture you have to extract them and place the prequeryprequery binary somewhere in your $PATH$PATH.

Using cargo-binstall

The most straight forward way to install Prequery is to use cargo-binstallcargo-binstall, this saves you the hassle of compiling from source.

prequeryprequery is so far not published on crates.io, so you need to install by refrencing the git repository:


                                
cargo binstall --git https://github.com/typst-community/prequery-preprocess prequery-preprocess

                                
cargo binstall --git https://github.com/typst-community/prequery-preprocess prequery-preprocess

                                
cargo binstall --git https://github.com/typst-community/prequery-preprocess prequery-preprocess

                                
cargo binstall --git https://github.com/typst-community/prequery-preprocess prequery-preprocess

Installation From Source

To install Prequery from source, you must have a Rust toolchain (Rust v1.85.0+) and cargocargo installed, you can get these using rustuprustup.

Stable


                                
cargo install --locked --git https://github.com/typst-community/prequery-preprocess --tag v0.2.0

                                
cargo install --locked --git https://github.com/typst-community/prequery-preprocess --tag v0.2.0

                                
cargo install --locked --git https://github.com/typst-community/prequery-preprocess --tag v0.2.0

                                
cargo install --locked --git https://github.com/typst-community/prequery-preprocess --tag v0.2.0

Nightly


                                
cargo install --locked --git https://github.com/typst-community/prequery-preprocess

                                
cargo install --locked --git https://github.com/typst-community/prequery-preprocess

                                
cargo install --locked --git https://github.com/typst-community/prequery-preprocess

                                
cargo install --locked --git https://github.com/typst-community/prequery-preprocess

This method usually doesn't require manually placing the Prequery binary in your $PATH$PATH because the cargo binary directory should already be in there.

Dependencies

When building from source, you can optionally use the native-tls-vendorednative-tls-vendored feature to vendor OpenSSL on Linux. See the native_tlsnative_tls crate's vendoredvendored feature for details.