From 8e53ca4b796242a4fc366a263fab3adecf5e7151 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 18 Nov 2025 12:02:31 +0100 Subject: docs: update info on Cargo workspace object Signed-off-by: Paolo Bonzini --- docs/markdown/Rust-module.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'docs/markdown/Rust-module.md') 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 -- cgit v1.2.3