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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to stable Rust (1.82) #1075

Merged
merged 4 commits into from
Oct 23, 2024
Merged

Bump to stable Rust (1.82) #1075

merged 4 commits into from
Oct 23, 2024

Conversation

unexge
Copy link
Contributor

@unexge unexge commented Oct 22, 2024

Description of change

Our build with Rust 1.82 broken previously due to changes on Rust 1.82. This PR fixes those breakages and bumps Rust version to stable.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).

unexge and others added 3 commits October 22, 2024 15:39
Signed-off-by: Burak Varli <burakvar@amazon.co.uk>
Signed-off-by: Burak Varli <burakvar@amazon.co.uk>
Signed-off-by: Vlad Volodkin <vlaad@amazon.com>
(cherry picked from commit bbaead2)
// detect if we're building the tests in `build.rs` at the moment, and this is the best approximation.
// See https://github.com/rust-lang/cargo/issues/1581.
let is_debug = get_env("PROFILE").unwrap_or_default() == "debug";
if is_debug && library_name == "aws-c-common" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we simplify and always use +whole-archive for aws-c-common? Is the difference in final size on release significant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like it doesn't affect the size of the mount-s3 binary:

$ # with `+whole-archive`
$ ls -lah target/release/mount-s3
-rwxr-xr-x 2 .. .. 131M Oct 23 09:53 target/release/mount-s3

$ # without `+whole-archive`
$ ls -lah target/release/mount-s3
$ -rwxr-xr-x 2 .. .. 131M Oct 23 09:58 target/release/mount-s3

I updated to include +whole-archive always for aws-c-common.

Signed-off-by: Burak Varli <burakvar@amazon.co.uk>
@unexge unexge temporarily deployed to PR integration tests October 23, 2024 10:03 — with GitHub Actions Inactive
@unexge unexge temporarily deployed to PR integration tests October 23, 2024 10:03 — with GitHub Actions Inactive
@unexge unexge temporarily deployed to PR integration tests October 23, 2024 10:03 — with GitHub Actions Inactive
@unexge unexge temporarily deployed to PR integration tests October 23, 2024 10:03 — with GitHub Actions Inactive
@unexge unexge temporarily deployed to PR integration tests October 23, 2024 10:04 — with GitHub Actions Inactive
@unexge unexge temporarily deployed to PR integration tests October 23, 2024 10:04 — with GitHub Actions Inactive
@unexge unexge temporarily deployed to PR integration tests October 23, 2024 10:04 — with GitHub Actions Inactive
Copy link
Contributor

@passaro passaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@unexge unexge added this pull request to the merge queue Oct 23, 2024
Merged via the queue into awslabs:main with commit d4a31ee Oct 23, 2024
23 checks passed
@unexge unexge deleted the use-stable-rust branch October 23, 2024 11:34
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.

2 participants