diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-10-24 09:37:54 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-12-22 11:59:07 +0100 |
| commit | f87cc4da40693345103264e205463e1689c7a956 (patch) | |
| tree | 5e37048e2983a770fbb03a5449341ebafc0eec03 /docs | |
| parent | 71e56514f07ab972375bde5f094ad7a39d996ac0 (diff) | |
| download | meson-f87cc4da40693345103264e205463e1689c7a956.tar.gz | |
modules: rust: add workspace methods returning arguments for build targets
Add rustc_args(), env(), and rust_dependency_map() methods to the
RustPackage class. They simply delegate to PackageState and
PackageConfiguration.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/markdown/Rust-module.md | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/docs/markdown/Rust-module.md b/docs/markdown/Rust-module.md index ba500e7ee..b1edb793c 100644 --- a/docs/markdown/Rust-module.md +++ b/docs/markdown/Rust-module.md @@ -312,7 +312,35 @@ all_features = pkg.all_features() Returns all defined features for a specific package or subproject. -### subproject.dependency() +### Packages only + +#### package.rust_args() + +```meson +args = pkg.rustc_args() +``` + +Returns rustc arguments for this package. + +#### package.env() + +```meson +env_vars = pkg.env() +``` + +Returns environment variables for this package. + +#### package.rust_dependency_map() + +```meson +dep_map = pkg.rust_dependency_map() +``` + +Returns rust dependency mapping for this package. + +### Subprojects only + +#### subproject.dependency() ```meson dep = subproject.dependency(...) |
