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/yaml/functions/_build_target_base.yaml | 5 +++++ docs/yaml/functions/library.yaml | 11 +++++++++++ docs/yaml/functions/shared_library.yaml | 8 ++++++++ docs/yaml/functions/shared_module.yaml | 8 ++++++++ docs/yaml/functions/static_library.yaml | 8 ++++++++ 5 files changed, 40 insertions(+) (limited to 'docs/yaml/functions') diff --git a/docs/yaml/functions/_build_target_base.yaml b/docs/yaml/functions/_build_target_base.yaml index 724b6a4..3f0e881 100644 --- a/docs/yaml/functions/_build_target_base.yaml +++ b/docs/yaml/functions/_build_target_base.yaml @@ -289,6 +289,7 @@ kwargs: rust_crate_type: type: str since: 0.42.0 + deprecated: 1.3.0 description: | Set the specific type of rust crate to compile (when compiling rust). @@ -306,6 +307,10 @@ kwargs: "proc-macro" is new in 0.62.0. + *Since 1.3.0* this is deprecated and replaced by "rust_abi" keyword argument. + `proc_macro` crates are now handled by the [`rust.proc_macro()`](Rust-module.md#proc_macro) + method. + rust_dependency_map: type: dict[str] since: 1.2.0 diff --git a/docs/yaml/functions/library.yaml b/docs/yaml/functions/library.yaml index f10ef8e..f9e336b 100644 --- a/docs/yaml/functions/library.yaml +++ b/docs/yaml/functions/library.yaml @@ -21,3 +21,14 @@ varargs_inherit: _build_target_base kwargs_inherit: - shared_library - static_library + +kwargs: + rust_abi: + type: str + since: 1.3.0 + description: | + Set the specific ABI to compile (when compiling rust). + - 'rust' (default): Create a "rlib" or "dylib" crate depending on the library + type being build. + - 'c': Create a "cdylib" or "staticlib" crate depending on the library + type being build. diff --git a/docs/yaml/functions/shared_library.yaml b/docs/yaml/functions/shared_library.yaml index 956fb2c..5076b93 100644 --- a/docs/yaml/functions/shared_library.yaml +++ b/docs/yaml/functions/shared_library.yaml @@ -44,3 +44,11 @@ kwargs: description: | Specify a Microsoft module definition file for controlling symbol exports, etc., on platforms where that is possible (e.g. Windows). + + rust_abi: + type: str + since: 1.3.0 + description: | + Set the specific ABI to compile (when compiling rust). + - 'rust' (default): Create a "dylib" crate. + - 'c': Create a "cdylib" crate. diff --git a/docs/yaml/functions/shared_module.yaml b/docs/yaml/functions/shared_module.yaml index 20bd5c4..46086ba 100644 --- a/docs/yaml/functions/shared_module.yaml +++ b/docs/yaml/functions/shared_module.yaml @@ -39,3 +39,11 @@ kwargs: description: | Specify a Microsoft module definition file for controlling symbol exports, etc., on platforms where that is possible (e.g. Windows). + + rust_abi: + type: str + since: 1.3.0 + description: | + Set the specific ABI to compile (when compiling rust). + - 'rust' (default): Create a "dylib" crate. + - 'c': Create a "cdylib" crate. diff --git a/docs/yaml/functions/static_library.yaml b/docs/yaml/functions/static_library.yaml index 1d42d60..615baa2 100644 --- a/docs/yaml/functions/static_library.yaml +++ b/docs/yaml/functions/static_library.yaml @@ -23,3 +23,11 @@ kwargs: If `true` the object files in the target will be prelinked, meaning that it will contain only one prelinked object file rather than the individual object files. + + rust_abi: + type: str + since: 1.3.0 + description: | + Set the specific ABI to compile (when compiling rust). + - 'rust' (default): Create a "rlib" crate. + - 'c': Create a "staticlib" crate. -- cgit v1.1