diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-04 17:53:44 +0100 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2025-07-18 09:42:56 -0700 |
commit | ff963e657cf1151cf002efc123563cb40dabab11 (patch) | |
tree | 99fde408ecc91fe6887a093e4a892f5a86cdd381 /docs/markdown/snippets/rust-dynamic-std.md | |
parent | 08798850c1c2798e55fe7099cbff231e48d52e42 (diff) | |
download | meson-ff963e657cf1151cf002efc123563cb40dabab11.zip meson-ff963e657cf1151cf002efc123563cb40dabab11.tar.gz meson-ff963e657cf1151cf002efc123563cb40dabab11.tar.bz2 |
rust: add rust_dynamic_std option
As an initial implementation, simply adding "-C prefer-dynamic" works
for binary crates (as well as dylib and proc-macro that already used it).
In the future this could be extended to other crate types. For more
information see the comment in the changed file, as well as
https://github.com/mesonbuild/meson/issues/8828 and
https://github.com/mesonbuild/meson/issues/14215.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/markdown/snippets/rust-dynamic-std.md')
-rw-r--r-- | docs/markdown/snippets/rust-dynamic-std.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/markdown/snippets/rust-dynamic-std.md b/docs/markdown/snippets/rust-dynamic-std.md new file mode 100644 index 0000000..ac4e8a7 --- /dev/null +++ b/docs/markdown/snippets/rust-dynamic-std.md @@ -0,0 +1,7 @@ +## New experimental option `rust_dynamic_std` + +A new option `rust_dynamic_std` can be used to link Rust programs so +that they use a dynamic library for the Rust `libstd`. + +Right now, `staticlib` crates cannot be produced if `rust_dynamic_std` is +true, but this may change in the future. |