summaryrefslogtreecommitdiff
path: root/test cases/rust/22 cargo subproject
AgeCommit message (Collapse)Author
2025-10-29cargo: only create dependencies if there is a [lib] tablePaolo Bonzini
In the long term, dependencies that do not have a [lib] table will not create an invocation of override_dependency; do not expect there to be a handwritten meson.build that does it. In particular, this is the case for extra-dep-1-rs in the "rust/22 cargo subproject" test case, so change that to use the extra_deps mechanism instead to invoke the subproject. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-10-23build: allow building staticlib and rlib togetherPaolo Bonzini
Fixes: #15028
2025-10-23cargo: use both_libraries when appropriatePaolo Bonzini
Fixes: #15028
2025-08-01cargo: Use -rs suffix only for rust ABIXavier Claessens
A cargo package can build multiple crate types for the same library. Using the same name in meson.override_dependency() fails. [pbonzini: adjust documentation]
2025-05-31cargo: Add support for target specific dependenciesXavier Claessens
2024-11-05cargo: Warn when encountering unknown keysDylan Baker
Cargo sometimes adds new keys and Meson needs to gracefully handle those. Currently, an unknown key will trigger an uncaught Python exception, which is pretty much the worse case. With this change Meson will instead issue a warning much like the one for unknown cpu architectures. See #13826 for the motivation for this change
2024-10-24cargo: Use the library name instead of package nameXavier Claessens
The library name defaults to its package name, but it can be different. For example: - package name: cairo-sys-rs - library name: cairo-sys - dependency name: ffi
2024-10-24cargo: Fix feature resolutionXavier Claessens
Introduce a global Cargo interpreter state that keeps track of enabled features on each crate. Before generating AST of a Cargo subproject, it downloads every sub-subproject and resolves the set of features enabled on each of them recursively. When it later generates AST for one its dependencies, its set of features and dependencies is already determined.
2024-03-15cargo: Add API version into dependency nameXavier Claessens
2024-02-27cargo: support lib.path in Cargo.tomlAlyssa Ross
Cargo implements this configuration option to override the entry point of the library. To get test coverage, I've modified one of the two Cargo subprojects in the test to use a non-default library entrypoint. The other still uses the default.
2024-02-26cargo: Call into meson subdir if it existsXavier Claessens
This allows projects to manually add extra rust args and deps. This is intended to replace build.rs logic.
2024-02-26cargo: Expose features as Meson boolean optionsXavier Claessens
2023-11-12Renumber test dirs for rc3.Jussi Pakkanen