-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Make it possible to statically link system libraries #10807
Comments
This is possible via the |
So far I've found no way to link libc statically. I've tried:
The runtime seems to pull in dynamic libraries unconditionally. |
Right now, rust's In the crate you've listed, It sounds like you're trying to produce a statically linked executable while using Rust supports static linking to the fullest extent that it is currently possible. I doubt that we will soon reach a point at which the compiler can generate a truly standalone executable when linking to |
[`unused_async`]: do not consider `await` in nested `async` blocks as used Fixes rust-lang#10800. This PR makes sure that `await` expressions inside of inner `async` blocks don't prevent the lint from triggering. For example ```rs async fn foo() { async { std::future::ready(()).await; } } ``` Even though there *is* a `.await` expression in this function, it's contained in an async block, which means that the enclosing function doesn't need to be `async` too. changelog: [`unused_async`]: do not consider `await` in nested `async` blocks as used
The major use cases:
include!
and gcc/MinGW's-static-libgcc
flag)The text was updated successfully, but these errors were encountered: