awslabs / mls-rs

An implementation of Messaging Layer Security (RFC 9420)
Apache License 2.0
70 stars 13 forks source link

Emit a `cargo::rustc-check-cfg` in `build.rs` #156

Open mgeisler opened 1 month ago

mgeisler commented 1 month ago

Problem:

In Rust 1.80, cfg values other than Cargo feature flags must be communicated to Rust: Automatic checking of cfgs at compile-time.

Without that, I believe we'll see warnings.

Solution:

I think we need build.rs files for every crate that accepts the mls_build_async flag.