compio-rs / compio

A thread-per-core Rust runtime with IOCP/io_uring/polling.
MIT License
420 stars 37 forks source link

Add `doc(cfg())` support #96

Closed George-Miao closed 1 year ago

SpriteOvO commented 1 year ago

docs.rs always builds docs with nightly Rust, so another approach is to enable doc_auto_cfg only with nightly builds. You can determine the channel in build.rs with rustc_version crate.

George-Miao commented 1 year ago

Run build.rs everytime the doc is built is not really a good idea. I will stick with the manual meta w/ cfg approach.