Skip to main content

Module setup

Module setup 

Source
Expand description

cargo xtask setup — build thirdparty dependencies that must be ready before cargo build runs.

Currently this covers SQLite only: libsqlite3-sys’s own build script runs before cadmus-core’s build.rs, so the custom SQLite library (built with SQLITE_ENABLE_UPDATE_DELETE_LIMIT) must already be on disk and pointed to by SQLITE3_LIB_DIR / SQLITE3_INCLUDE_DIR.

§Usage

cargo xtask setup           # build for all known targets (host + Kobo)
cargo xtask setup --host    # build for the native host only
cargo xtask setup --kobo    # build for Kobo (ARM) only
cargo xtask setup --all     # explicitly build for all known targets
cargo xtask setup --target <triple>  # build for an arbitrary target

After running, set the printed environment variables before cargo build or cargo xtask build-kobo.

Structs§

SetupArgs
Arguments for cargo xtask setup.

Functions§

guess_host_triple 🔒
Best-effort detection of the host target triple.
resolve_targets 🔒
Determine which target triples to build based on CLI flags.
run
Build thirdparty dependencies that must exist before cargo build.