-
Notifications
You must be signed in to change notification settings - Fork 157
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
Conversation
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)
mountpoint-s3-crt-sys/build.rs
Outdated
// 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" { |
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.
Shall we simplify and always use +whole-archive
for aws-c-common
? Is the difference in final size on release
significant?
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.
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>
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.
LGTM
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.
PanicInfo
type alias #1072. Since we haverust-toolchain.toml
now, and we don't vendmountpoint-s3
as a Rust crate, we're fine to only userust-toolchain.toml
and notrust-version
inCargo.toml
. Although they serve to different purposes, having only one place to specify Rust version would be preferable and sufficient in our case.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).