From c2cbb7001129ee92d966f5060fbf0459eaa29550 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 12 Nov 2025 14:22:00 +0100 Subject: modules: rust: add package.shared_module method Signed-off-by: Paolo Bonzini --- docs/markdown/Rust-module.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs/markdown/Rust-module.md') diff --git a/docs/markdown/Rust-module.md b/docs/markdown/Rust-module.md index 50e4854ca..5ee7b7da9 100644 --- a/docs/markdown/Rust-module.md +++ b/docs/markdown/Rust-module.md @@ -396,6 +396,16 @@ Accepts all keyword arguments from [[shared_library]] and [[static_library]]. `rust_abi` must match the crate types and is mandatory if more than one ABI is exposed by the crate. +#### package.shared_module() + +```meson +lib = pkg.shared_module(...) +``` + +Builds the `cdylib` for a workspace package as a shared module. + +Accepts all keyword arguments from [[shared_module]]. + #### package.proc_macro() ```meson -- cgit v1.2.3