diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-11-18 12:02:31 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-12-22 12:01:05 +0100 |
| commit | 8e53ca4b796242a4fc366a263fab3adecf5e7151 (patch) | |
| tree | fd37e6fcdcf2712568bb2de11987a7fe8f713f14 /docs/markdown/Rust-module.md | |
| parent | 8d2676a49bdce134e3ee9d97f00e627b442dfa40 (diff) | |
| download | meson-8e53ca4b796242a4fc366a263fab3adecf5e7151.tar.gz | |
docs: update info on Cargo workspace object
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/markdown/Rust-module.md')
| -rw-r--r-- | docs/markdown/Rust-module.md | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/markdown/Rust-module.md b/docs/markdown/Rust-module.md index 0c576ece6..ee800441e 100644 --- a/docs/markdown/Rust-module.md +++ b/docs/markdown/Rust-module.md @@ -16,8 +16,8 @@ authors: The rust module provides helper to integrate rust code into Meson. The goal is to make using rust in Meson more pleasant, while still -remaining mesonic, this means that it attempts to make Rust work more -like Meson, rather than Meson work more like rust. +remaining mesonic. Rust conventions are adopted in order to help the +Meson user and Rust developer, rather than to make Meson work more like rust. ## Functions @@ -337,6 +337,13 @@ Returns all defined features for a specific package or subproject. ### Packages only +Package objects are able to extract information from `Cargo.toml` files, +and provide methods to query how Cargo would build this package. They +also contain convenience wrappers for non-Rust-specific functions +(`executable`, `library`, `meson.override_dependency`, etc.), that +automatically add dependencies and compiler arguments from `Cargo.toml` +information. + #### package.rust_args() ```meson |
