summaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-10-26 09:15:54 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2025-12-22 12:01:05 +0100
commit254d7e1c48f3a2d0837439f07628cfd54e47367b (patch)
tree7c5deb63b2c3ae70db943d450d123e60645c9f78 /docs/markdown
parent2a5370fa85397473e98a09779fc4c7a56e048959 (diff)
downloadmeson-254d7e1c48f3a2d0837439f07628cfd54e47367b.tar.gz
rust: add to_system_dependency
Move the logic for system dependencies outside Cargo.interpreter and into the rust module, so that it can be reused by the workspace object. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Rust-module.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/markdown/Rust-module.md b/docs/markdown/Rust-module.md
index b1edb793c..37ba59d8e 100644
--- a/docs/markdown/Rust-module.md
+++ b/docs/markdown/Rust-module.md
@@ -172,6 +172,21 @@ Only a subset of [[shared_library]] keyword arguments are allowed:
- link_with
- override_options
+### to_system_dependency()
+
+*Since 1.11.0*
+
+```meson
+rustmod.to_system_dependency(dep[, name])
+```
+
+Create and return an internal dependency that wraps `dep` and
+defines `cfg(system_deps_have_NAME)`. This is compatible with
+how the `system-deps` crate reports the availability of a system
+dependency to Rust code.
+
+If omitted, the name defaults to the name of the dependency.
+
### workspace()
Basic usage: