#15183·meson

cargo: Respect Meson's default_library instead of Cargo.toml's crate_type

Author: xclaesseCreated Oct 29, 2025Updated Sep 11, 2026
Labelsmodule:rust

When `Cargo.toml` has e.g. `crate_type = ["staticlib", "cdylib"]` it would make sense to use `library(..., rust_abi: 'c')` instead of `both_libraries()` to give shared and/or static decision to Meson instead of respecting `Cargo.toml`.