A library for writing Apache Beam pipelines in Rust.
The SDK is under active development. The design and its review are in the RFC shared on the dev@beam.apache.org mailing list.
The SDK is a Cargo workspace with its root at sdks/rust:
| Crate | Path | Contents |
|---|---|---|
apache-beam-model | beam/model/ | Protobuf and gRPC bindings generated from the standard Beam model protos. |
apache-beam-derive | beam/derive/ | #[derive(BeamRow)], #[derive(BeamEnum)], #[derive(Outputs)], #[derive(State)], #[derive(Timers)], and #[derive(Register)] proc-macros. apache-beam-core re-exports them. Do not depend on this crate directly. |
Run builds through Gradle, like the rest of the Beam repository:
./gradlew :sdks:rust:build # Compile all crates ./gradlew :sdks:rust:test # Run all tests (one crate: -Ppkg=<crate>) ./gradlew :sdks:rust:check # rustfmt --check + clippy -D warnings ./gradlew :sdks:rust:fmt # Apply formatting
For the full task reference, see docs/development.md.
See the Beam Contribution Guide. Each new file must have the standard Apache 2.0 license header. Before you open a PR, run ./gradlew :sdks:rust:check to verify compliance.