cosmic-text icon indicating copy to clipboard operation
cosmic-text copied to clipboard

Use doc_auto_cfg for docs generation

Open i509VCB opened this issue 1 year ago • 0 comments

This is done when generating docs on docs.rs and locally with RUSTDOCFLAGS="--cfg=docsrs" cargo +nightly doc --all-features

There seems to be some bugs with the labels however:

There does seem to be a rustdoc bug when generating the labels as SwashImage fails to get a feature label automatically assigned to the type, but the functions have the label.

Also FontSystem seems to get an std label even though it is available no_std. I imagine that could be fixed by reworking the reexports.

Screenshot 2023-03-13 at 21-02-48 cosmic_text - Rust

i509VCB avatar Mar 14 '23 02:03 i509VCB