diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2023-04-21 16:21:48 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-09-19 13:54:49 -0400 |
commit | 10dcd87d002f6f36b1f60371dc807b8d9959d97b (patch) | |
tree | 676b5597a7accdd4e2853d7c53f3453535dc5727 /docs/markdown/snippets | |
parent | 8ccdb881374084ddb90ef259539cfd3bb748c904 (diff) | |
download | meson-10dcd87d002f6f36b1f60371dc807b8d9959d97b.zip meson-10dcd87d002f6f36b1f60371dc807b8d9959d97b.tar.gz meson-10dcd87d002f6f36b1f60371dc807b8d9959d97b.tar.bz2 |
Rust: Replace rust_crate_type with rust_abi
Meson already knows if it's a shared or static library, user only need
to specify the ABI (Rust or C).
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/rust_crate_type.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/markdown/snippets/rust_crate_type.md b/docs/markdown/snippets/rust_crate_type.md new file mode 100644 index 0000000..9b32f0e --- /dev/null +++ b/docs/markdown/snippets/rust_crate_type.md @@ -0,0 +1,11 @@ +## Deprecated `rust_crate_type` and replaced by `rust_abi` + +The new `rust_abi` keyword argument is accepted by [[shared_library]], +[[static_library]], [[library]] and [[shared_module]] functions. It can be either +`'rust'` (the default) or `'c'` strings. + +`rust_crate_type` is now deprecated because Meson already knows if it's a shared +or static library, user only need to specify the ABI (Rust or C). + +`proc_macro` crates are now handled by the [`rust.proc_macro()`](Rust-module.md#proc_macro) +method. |