Skip to content

feat(build): graduate Rust cargo-lambda support from experimental#8526

Merged
bnusunny merged 6 commits intoaws:developfrom
bnusunny:move_rust_outof_experimental
Mar 16, 2026
Merged

feat(build): graduate Rust cargo-lambda support from experimental#8526
bnusunny merged 6 commits intoaws:developfrom
bnusunny:move_rust_outof_experimental

Conversation

@bnusunny
Copy link
Contributor

@bnusunny bnusunny commented Dec 22, 2025

Which issue(s) does this change fix?

Why is this change necessary?

Lambda Rust Runtime is General Available. We need to graduate Rust cargo-lambda support from experimental.

How does it address the issue?

Remove the experimental/beta flag requirement for building Rust functions with the rust-cargolambda build method. Users no longer need to pass --beta-features or set SAM_CLI_BETA_RUST_CARGO_LAMBDA=1 to build Rust Lambda functions.

Changes:

  • Remove RustCargoLambda from ExperimentalFlag class
  • Remove _check_rust_cargo_experimental_flag() method from BuildContext
  • Update integration tests to not require beta_features flag
  • Update unit tests to remove mock for deleted method

What side effects does this change have?

Mandatory Checklist

PRs will only be reviewed after checklist is complete

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@bnusunny bnusunny requested a review from a team as a code owner December 22, 2025 20:10
@github-actions github-actions bot added area/build sam build command pr/internal labels Dec 22, 2025
@bnusunny bnusunny force-pushed the move_rust_outof_experimental branch from f229671 to 5d67b74 Compare December 22, 2025 20:14
@bnusunny bnusunny closed this Dec 22, 2025
@bnusunny bnusunny reopened this Dec 22, 2025
@bnusunny bnusunny force-pushed the move_rust_outof_experimental branch from 5d67b74 to 23f5ed0 Compare December 22, 2025 20:23
@roger-zhangg
Copy link
Member

Error: Cargo Lambda failed: Feature flag experimentalCargoLambda must be enabled to use this workflow
seems there are more to remove

@bnusunny
Copy link
Contributor Author

Fixed now.

Remove the experimental/beta flag requirement for building Rust functions
with the rust-cargolambda build method. Users no longer need to pass
--beta-features or set SAM_CLI_BETA_RUST_CARGO_LAMBDA=1 to build Rust
Lambda functions.

Changes:
- Remove RustCargoLambda from ExperimentalFlag class
- Remove _check_rust_cargo_experimental_flag() method from BuildContext
- Update integration tests to not require beta_features flag
- Update unit tests to remove mock for deleted method
- Add CargoLambda to ExperimentalFlag with persistent=True
- Update is_experimental_enabled() to always return True for persistent flags
- Update unit tests for new flag count and persistent behavior
@bnusunny bnusunny force-pushed the move_rust_outof_experimental branch from 2c8475a to f29cc8a Compare February 13, 2026 23:05
@bnusunny bnusunny requested a review from reedham-aws February 13, 2026 23:19
@bnusunny bnusunny requested a review from valerena March 10, 2026 04:30
@bnusunny bnusunny requested review from licjun March 16, 2026 18:11
@bnusunny bnusunny added this pull request to the merge queue Mar 16, 2026
Merged via the queue into aws:develop with commit c15a8d2 Mar 16, 2026
82 of 84 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build sam build command pr/internal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants