fortanix/rust-mbedtls

Consider specifying links = "mbedcrypto" instead of "mbedtls"

egrimley-arm opened this issue · 0 comments

The mbedtls-sys-auto crate specifies links = "mbedtls" (https://github.com/fortanix/rust-mbedtls/blob/master/mbedtls-sys/Cargo.toml#L14). In fact it links against three C libraries: libmbedcrypto.a, libmbedtls.a, libmbedx509.a.

There is another publicly available Rust crate, psa-crypto-sys, that links against libmbedcrypto.a only. That crate specifies links = "mbedcrypto" (https://github.com/parallaxsecond/rust-psa-crypto/blob/main/psa-crypto-sys/Cargo.toml#L12).

Perhaps it would be better for mbedtls-sys-auto to specify links = "mbedcrypto" so that the collision with psa-crypto-sys is detected by Cargo.