Skip to content

chore: bump function-sdk-rust to 0.3.0 - #62

Merged
jonasz-lasut merged 1 commit into
mainfrom
bump-sdk-0-3
Aug 26, 2026
Merged

jonasz-lasut merged 1 commit into
mainfrom
bump-sdk-0-3

Conversation

@jonasz-lasut

Copy link
Copy Markdown
Owner

Bumps to function-sdk-rust 0.3.0, whose Args now carries --metrics-address (crossplane/function-sdk-rust#10).

What changed

  • function-sdk-rust = "0.3.0" in crates/function and the engine dev-dependency; lockfile updated.
  • The runtime's own --metrics-address flag definition is dropped from ServeArgs: the flattened SDK Args now provides it with the identical name, METRICS_ADDRESS env and :8080 default, and clap would refuse the duplicate. serve_main reads args.sdk.metrics_address.
  • Net effect: none user-visible. The flag surface is byte-identical (--help verified), and the runtime still serves its own /metrics from the engine registry through ops.rs - the SDK's metrics module is inert here because the runtime owns its raw-codec transport and never calls the SDK's serve.

Testing

  • cargo test --workspace green (12 suites, guest builds skipped - no guest-facing change); clippy -D warnings and cargo fmt --check clean.
  • function --help shows --metrics-address exactly as before.

The SDK Args now carries --metrics-address (same name, env and :8080
default), so the runtime own flag definition is dropped - the flattened
clap Args would otherwise collide - and serve_main reads it from the
SDK args. The flag surface and behavior are unchanged: the runtime
still serves its own /metrics (engine registry) through ops.rs; the SDK
metrics module stays inert here since the runtime owns its transport.
@jonasz-lasut
jonasz-lasut merged commit 9d648eb into main Aug 26, 2026
3 checks passed
@jonasz-lasut
jonasz-lasut deleted the bump-sdk-0-3 branch August 26, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant