rwf2 / multer

An async parser for multipart/form-data content-type in Rust
MIT License
156 stars 35 forks source link

Set `doc(cfg(...))` on feature gated APIs #31

Closed nickelc closed 3 years ago

nickelc commented 3 years ago

Enables the doc_cfg feature if building documentation on docs.rs.

SergioBenitez commented 3 years ago

I'd prefer to do this on nightly always instead of just on docs.rs. Can you see a cfg in build.rs that's set if the compiler supports feature flags? Something like this:

https://github.com/SergioBenitez/Figment/blob/9855ee64262cc159401028863809eb2a66119245/build.rs#L1-L5