Repository navigation
Launcher-side release. PyPI
pip install --upgrade flyteplugins-rsThe descriptor is found automatically
fallback_descriptor was ceremony — the generated module always sits beside the crate under a fixed name. A launcher is now down to what actually varies:
my_task, rust_env = rs.rust_task(
crate_dir=_CRATE,
binary="hello-trace",
)Passing fallback_descriptor still works, and now means "use this instead of the one beside the crate". A crate with neither a built binary nor a generated module gets an error telling you to run cargo build once, rather than a TypeError.
Bring your own Dockerfile
dockerfile= covers what declarative layers cannot express — a private base image, system packages in the runtime stage, or a multi-stage build that keeps the Rust toolchain out of the shipped image:
probe_image, rust_env = rs.rust_task(
crate_dir=_CRATE,
binary="custom-image",
dockerfile=_CRATE / "Dockerfile",
image_name="my-existing-package", # optional; default is <binary>-worker
)Verified end to end: local docker buildx → push to ghcr.io → cluster pull → task executes, returning demo: image provides git version 2.39.5 from an image whose git exists only because its Dockerfile installed it.
See the new custom-image example for the contract a worker Dockerfile has to meet. Two things to know: it builds only with the local docker builder (flyte --image-builder local run ... — the flag goes on flyte, not run), and the first push to a new image name creates a repository that registries like GHCR make private by default, which the cluster then cannot pull.
Also
find_binary now searches the enclosing workspace, not just the crate directory. A workspace member builds into the workspace root's target/, so the descriptor previously fell back to the bundled copy — silently giving up the guarantee that the Rust signature is what gets launched.
Compatibility
Descriptor contract unchanged at flyte_interface_version = 1, so this works with flyte 0.1.0 on crates.io. The two halves are versioned independently — see docs/releasing.md.