diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-10-22 16:52:08 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-12-22 11:58:30 +0100 |
| commit | 9752def1c96eb32dc37c32398a0fe8802392fbc9 (patch) | |
| tree | c43f2d983c6b9273df80d0edf9560d3ab726927d /docs | |
| parent | bfb5ea6fdbd85568c4ce20e28d4d727b78994938 (diff) | |
| download | meson-9752def1c96eb32dc37c32398a0fe8802392fbc9.tar.gz | |
modules: rust: implement more package accessors
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/markdown/Rust-module.md | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/docs/markdown/Rust-module.md b/docs/markdown/Rust-module.md index 99faeecfe..fbe65f1b6 100644 --- a/docs/markdown/Rust-module.md +++ b/docs/markdown/Rust-module.md @@ -258,6 +258,47 @@ Positional arguments: The package object returned by `workspace.subproject()` provides methods for working with individual packages in a Cargo workspace. +### subproject.name() + +```meson +name = pkg.name() +``` + +Returns the name of the subproject. + +### subproject.version() + +```meson +version = pkg.version() +``` + +Returns the normalized version number of the subproject. + +### subproject.api() + +```meson +api = pkg.api() +``` + +Returns the API version of the subproject, that is the version up to the first +nonzero element. + +### subproject.features() + +```meson +features = pkg.features() +``` + +Returns selected features for a specific subproject. + +### subproject.all_features() + +```meson +all_features = pkg.all_features() +``` + +Returns all defined features for a specific subproject. + ### subproject.dependency() ```meson |
