Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using stable for cargo fmt in GitHub actions #380

Closed
nmoutschen opened this issue Dec 11, 2021 · 4 comments
Closed

Using stable for cargo fmt in GitHub actions #380

nmoutschen opened this issue Dec 11, 2021 · 4 comments

Comments

@nmoutschen
Copy link
Contributor

Hey folks! 馃憢

I've noticed this uses the nightly version of Rust to do fmt and clippy checks (see https://github.com/awslabs/aws-lambda-rust-runtime/blob/master/.github/workflows/build.yml#L60-L81).

Since those versions might include new checks that are not yet in stable, and most people are using stable, should we change to using stable there too?

@coltonweaver
Copy link
Contributor

I think we should 100% use stable. Good call out.

@nmoutschen
Copy link
Contributor Author

Actually, looking at the bigger picture, we should probably define an MSRV at some point too.

I'll do some tests to see what we could realistically support. In the crate's current stage, we could lower MSRV to 1.46.0 with three small changes:

  • Downgrade edition for lambda-extension and lambda-runtime-api-client to 2018; and
  • Import std::convert::TryInto for lambda-runtime-api-client.

We can't go any lower that this due to while and if usage in const fn in http-0.2.5.

Counter argument to this is that aligning with the Rust SDK will probably be good enough. We'd still need to make those changes to support 1.53.0 too.

I can make those changes tomorrow and submit a PR.

@bahildebrand
Copy link
Contributor

@nmoutschen can we close this? I see a related PR is merged, but not sure if there is any work remaining.

@nmoutschen
Copy link
Contributor Author

Yes we can! :)

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

No branches or pull requests

3 participants