summaryrefslogtreecommitdiff
path: root/docs/markdown/Rust-module.md
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-11-12 14:22:00 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2025-12-22 12:01:05 +0100
commitc2cbb7001129ee92d966f5060fbf0459eaa29550 (patch)
treed5d8108447ee5fdb895285924810fb3eeab078c2 /docs/markdown/Rust-module.md
parent8c88a12e508161244704efc1685d0ea8ddb8fcd5 (diff)
downloadmeson-c2cbb7001129ee92d966f5060fbf0459eaa29550.tar.gz
modules: rust: add package.shared_module method
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/markdown/Rust-module.md')
-rw-r--r--docs/markdown/Rust-module.md10
1 files changed, 10 insertions, 0 deletions
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