Skip to content

Releases

flyte 0.1.0 (Rust SDK)

Choose a tag to compare

@kumare3 kumare3 released this 11 Aug 02:39
011718b

First crates.io release of the Flyte Rust SDK.

[dependencies]
flyte = "0.1"
  • flyte — the SDK: #[flyte::task], #[flyte::trace] with record/replay, #[derive(FlyteStruct)], and flyte::condition for pausing on a human answer.
  • flyte-macros — the proc-macros behind them, pulled in automatically.

Pair it with the Python launcher, flyteplugins-rs, which declares the task to Flyte and builds the worker image:

pip install flyteplugins-rs

The two are versioned independently. What keeps them compatible is the descriptor contract, flyte_interface_version = 1, checked at launch — not matching version numbers. See docs/releasing.md.

Notes

Unblocked by publishing flyte_core 0.1.0 from flyteorg/flyte-sdk — until then flyte depended on it by git rev, which crates.io rejects.

The worker still embeds a Python interpreter: flyte_core's default features include pyo3/auto-initialize, so task binaries link libpython. That ends with the pure-Rust controller swap, which will be a breaking release.

Experimental — APIs and wire contracts may change without notice.

flyteplugins-rs 0.0.2

Choose a tag to compare

@kumare3 kumare3 released this 11 Aug 03:54

Launcher-side release. PyPI

pip install --upgrade flyteplugins-rs

The 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.

flyteplugins-rs 0.0.1

Choose a tag to compare

@kumare3 kumare3 released this 11 Aug 00:05

First PyPI release of flyteplugins-rs, the Python launcher for Rust Flyte tasks.

pip install flyteplugins-rs

https://pypi.org/project/flyteplugins-rs/0.0.1/

What it does

Declares a compiled Rust worker as a Flyte task. The interface is never hand-written — it comes from <binary> describe-interface, so renaming a Rust parameter cannot silently diverge from what gets launched.

my_task, rust_env = rs.rust_task(
    crate_dir=Path(__file__).parent,
    binary="hello-trace",
    fallback_descriptor=interface_gen.DESCRIPTOR,
)

Compatibility

Speaks descriptor contract flyte_interface_version = 1. The launcher checks this against the worker binary at launch and refuses to run on a mismatch, naming both sides. Version numbers are deliberately not kept in sync with the flyte Rust crate — see docs/releasing.md.

Requires flyte>=2.0.0.

Notes

The Rust crates (flyte, flyte-macros) are not published yet: flyte depends on flyte_core by git rev, and crates.io rejects git dependencies. Until then, depend on the crate by path or git.