diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-10-17 14:45:07 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-12-22 11:58:30 +0100 |
| commit | 646593856800c55f44fe2b15991570737709a36e (patch) | |
| tree | fca53f863fa98c9e3053d2285681f3e7dc5b7adc /test cases/rust/32 rust.workspace workspace/subprojects/answer-2.1/src/lib.rs | |
| parent | d1ea846b6bbb5cbf09d8e9707707c40af3cf7c92 (diff) | |
| download | meson-646593856800c55f44fe2b15991570737709a36e.tar.gz | |
rust: add rust.workspace() skeleton implementation
rust.workspace() is the entry point for global feature resolution.
It loads a Cargo.toml file and ensures that all dependencies will be
built with the correct set of features.
Fixes: #13404
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'test cases/rust/32 rust.workspace workspace/subprojects/answer-2.1/src/lib.rs')
| -rw-r--r-- | test cases/rust/32 rust.workspace workspace/subprojects/answer-2.1/src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test cases/rust/32 rust.workspace workspace/subprojects/answer-2.1/src/lib.rs b/test cases/rust/32 rust.workspace workspace/subprojects/answer-2.1/src/lib.rs new file mode 100644 index 000000000..b7a721b05 --- /dev/null +++ b/test cases/rust/32 rust.workspace workspace/subprojects/answer-2.1/src/lib.rs @@ -0,0 +1,10 @@ +pub fn answer() -> u8 +{ + 42 +} + +#[cfg(feature = "large")] +pub fn large_answer() -> u64 +{ + 42 +} |
