diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-11-17 10:59:19 +0100 |
|---|---|---|
| committer | Xavier Claessens <xclaesse@gmail.com> | 2025-11-17 08:13:05 -0500 |
| commit | a23aa1132fd75248f1b9617dc518ca3fc69804ba (patch) | |
| tree | 25f48eb3369732acfd4b6abfd9e60b4aded14fcd /docs/yaml | |
| parent | 3eed425f8b5ac7cf89e51b1f06e6e7e3255ff626 (diff) | |
| download | meson-a23aa1132fd75248f1b9617dc518ca3fc69804ba.tar.gz | |
docs: clarify documentation for rust_dependency_map
Give a practical example of how it is used.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/yaml')
| -rw-r--r-- | docs/yaml/functions/_build_target_base.yaml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/yaml/functions/_build_target_base.yaml b/docs/yaml/functions/_build_target_base.yaml index f1dc09df0..dec3d8db0 100644 --- a/docs/yaml/functions/_build_target_base.yaml +++ b/docs/yaml/functions/_build_target_base.yaml @@ -327,11 +327,11 @@ kwargs: type: dict[str] since: 1.2.0 description: | - On rust targets this provides a map of library names to the crate name - with which it would be available inside the rust code. - - This allows renaming similar to the dependency renaming feature of cargo - or `extern crate foo as bar` inside rust code. + On rust targets this allows giving custom names to the crates that are + linked into the target. For example, passing a dependency map of + `{ 'gtk4': 'gtk' }` has the same effect of writing `gtk.package = "gtk4"` + in the `dependencies` section of a Cargo.toml file, or + `extern crate gtk4 as gtk` inside Rust code. vala_header: type: str |
