diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-10-23 19:15:31 +0200 |
|---|---|---|
| committer | Xavier Claessens <xclaesse@gmail.com> | 2025-10-23 18:29:30 +0100 |
| commit | d87fd34c68c441ecf04eb2ff4bd4857406c268e9 (patch) | |
| tree | 6a3f0a0faa02f02080571bde81a59c3199505d83 /mesonbuild/cargo | |
| parent | c63cfd95b3b93a25f1c8ac490603c37124ba20f0 (diff) | |
| download | meson-d87fd34c68c441ecf04eb2ff4bd4857406c268e9.tar.gz | |
cargo: fix proc-macro=true without crate_type
The default value is not passed further through the converter,
therefore it must take proc-macro into account.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/cargo')
| -rw-r--r-- | mesonbuild/cargo/manifest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/cargo/manifest.py b/mesonbuild/cargo/manifest.py index 5e453c9a1..a194d0120 100644 --- a/mesonbuild/cargo/manifest.py +++ b/mesonbuild/cargo/manifest.py @@ -357,7 +357,7 @@ class Library(BuildTarget): path=DefaultValue('src/lib.rs'), edition=DefaultValue(pkg.edition), crate_type=ConvertValue(lambda x: ['proc-macro'] if proc_macro else x, - ['lib'])) + ['proc-macro'] if proc_macro else ['lib'])) @dataclasses.dataclass |
