Expand description
The Cargo target a deploy builds and the builder image’s Rust version.
Structs§
- Cargo
Target - The resolved Cargo target.
Constants§
- COMPILED_
RUSTC_ VERSION - The version of the compiler that built gadk-cli (
build.rs), the third candidate of the builder-image version chain; empty whenbuild.rscould not read it. - DEFAULT_
BUILDER_ RUST_ VERSION - The last-resort, rolling builder tag.
Functions§
- builder_
image rust:<version>-bookworm, orrust:bookwormforlatest.- builder_
rust_ version <workspace_root>/rust-toolchain.toml[toolchain] channel→target.rust_version→compiled(callers passCOMPILED_RUSTC_VERSION) →DEFAULT_BUILDER_RUST_VERSION; each candidate is used only whenis_rust_version.- channel_
from_ toolchain_ file - The
[toolchain] channelofrust-toolchain.tomlcontents when it is a version number, else"". A minimal line reader (no TOML parser): section headers,channel = "<v>"or'<v>', trailing#comments. - check_
path_ dependencies - Rejects a
pathdependency of a workspace member outsidestaged_root(it would not be staged). - is_
rust_ version - A Rust version number:
^[0-9]+(\.[0-9]+){0,2}$. - resolve
- Resolves
-e/--entry_point_path(a package directory or itsCargo.toml, relative toenv.cwd; empty meansenv.cwd) and--binthroughcargo metadata --format-version 1 --no-deps --manifest-path <dir>/Cargo.tomlonenv.runner. Errors (gadk’s texts): missing package, zero binaries, unknown--bin, several binaries without--bin, noCargo.lockat the workspace root.