-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(build): graduate Rust cargo-lambda support from experimental #8526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
f229671 to
5d67b74
Compare
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
5d67b74 to
23f5ed0
Compare
|
|
- 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
|
Fixed now. |
| # CargoLambda is no longer experimental - always enabled | ||
| CargoLambda = ExperimentalEntry( | ||
| "experimentalCargoLambda", EXPERIMENTAL_ENV_VAR_PREFIX + "CARGO_LAMBDA", persistent=True | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this something we should remove in Lambda Builders instead (or Lambda Builders first)? Here: https://github.com/aws/aws-lambda-builders/blob/1d2de0531053ef5b24e1332c976b198090dbeafe/aws_lambda_builders/workflows/rust_cargo/workflow.py#L39-L43
We don't need to keep this CargoLambda flag here if lambda-builders doesn't check for the flag over there, and we don't need to add the "persistent" field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that it would be better to remove the flag rather than mark the beta flag as perpetually true.
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:
What side effects does this change have?
Mandatory Checklist
PRs will only be reviewed after checklist is complete
make prpassesmake update-reproducible-reqsif dependencies were changedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.