re-enable docs for wgpu-core

This commit is contained in:
Andreas Reich 2024-08-10 12:54:50 +02:00
parent 0fb772b5df
commit ab17d29237

View File

@ -2,20 +2,6 @@
//! It is designed for integration into browsers, as well as wrapping
//! into other language-specific user-friendly libraries.
//!
#![cfg_attr(
not(any(not(doc), wgpu_core_doc)),
doc = r#"\
## Documentation hidden
As a workaround for [an issue in rustdoc](https://github.com/rust-lang/rust/issues/114891)
that [affects `wgpu-core` documentation builds \
severely](https://github.com/gfx-rs/wgpu/issues/4905),
the documentation for `wgpu-core` is empty unless built with
`RUSTFLAGS="--cfg wgpu_core_doc"`, which may take a very long time.
"#
)]
#![cfg(any(not(doc), wgpu_core_doc))]
//!
//! ## Feature flags
#![doc = document_features::document_features!()]
//!