From 10dcd87d002f6f36b1f60371dc807b8d9959d97b Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 21 Apr 2023 16:21:48 -0400 Subject: 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). --- docs/markdown/snippets/rust_crate_type.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/markdown/snippets/rust_crate_type.md (limited to 'docs/markdown/snippets') 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. -- cgit v1.1