summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/cargo-workspace-object.md
blob: c6bc4d4bac25465ef11983abb5aa1652b50e4fbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
## Cargo workspace object

Meson now is able to parse the toplevel `Cargo.toml` file of the
project when the `workspace()` method of the Rust module is called.
This guarantees that features are resolved according to what is
in the `Cargo.toml` file, and in fact enables configuration of
features for the build.

The returned object also allows retrieving features and dependencies
for Cargo subprojects.

While Cargo subprojects remain experimental, the Meson project will
try to keep the workspace object reasonably backwards-compatible.