Skip to content

Commit

Permalink
Add features to generated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yyogo committed Mar 31, 2024
1 parent b11099f commit f74347a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,7 @@ required-features = ["std"]
name = "benchmarks"
harness = false
required-features = ["std"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
#![deny(rustdoc::broken_intra_doc_links)]
#![deny(rustdoc::redundant_explicit_links)]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

extern crate alloc;

Expand Down Expand Up @@ -280,5 +281,6 @@ pub use world::World;
pub(crate) use query::ArchetypeSearcher;
pub(crate) use vtable::ComponentVTable;

#[doc(inline)]
#[cfg(feature = "derive")]
pub use flax_derive::*;

0 comments on commit f74347a

Please sign in to comment.