Skip to content

Commit

Permalink
fix features
Browse files Browse the repository at this point in the history
  • Loading branch information
Nertsal committed Nov 15, 2024
1 parent 2b5c3bd commit d383175
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ homepage = "https://github.com/Nertsal/stecs"
repository = "https://github.com/Nertsal/stecs"

[features]
default = ["slotmap", "query_mut"]
default = ["query_mut"]
query_mut = ["stecs-derive/query_mut"]
dynamic = ["stecs-derive/dynamic"]
dynamic = ["stecs-derive/dynamic", "dep:anymap3"]

[workspace]
members = ["crates/*"]

[dependencies]
stecs-derive = { path = "crates/stecs-derive", version = "0.1.0" }
slotmap = { version = "1.0", optional = true }
slotmap = "1.0"
anymap3 = { version = "1.0.1", optional = true }

[dev-dependencies]
Expand All @@ -32,33 +32,33 @@ all-features = true
[[bench]]
name = "pos_vel"
harness = false
required-features = ["slotmap", "query_mut"]
required-features = ["query_mut"]
[[bench]]
name = "simple"
harness = false
required-features = ["slotmap", "query_mut"]
required-features = ["query_mut"]

[[example]]
name = "full"
doc-scrape-examples = true
required-features = ["slotmap", "query_mut"]
required-features = ["query_mut"]

[[example]]
name = "blogpost"
doc-scrape-examples = true
required-features = ["slotmap", "query_mut"]
required-features = ["query_mut"]

[[example]]
name = "mutations"
doc-scrape-examples = true
required-features = ["slotmap", "query_mut"]
required-features = ["query_mut"]

[[example]]
name = "generics"
doc-scrape-examples = true
required-features = ["slotmap"]
required-features = []

[[example]]
name = "dynamic"
doc-scrape-examples = true
required-features = ["slotmap", "query_mut", "dynamic"]
required-features = ["query_mut", "dynamic"]
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,10 @@ pub mod dynamic;
/// The [`Storage`](storage::Storage) trait and basic implementors.
pub mod storage;

#[cfg(feature = "slotmap")]
pub use slotmap;

/// use `stecs::prelude::*;` to import all necessary traits, types, and macros.
pub mod prelude {
#[cfg(feature = "slotmap")]
pub use crate::storage::{
dense::{Dense, DenseId},
sparse::{Sparse, SparseId},
Expand Down

0 comments on commit d383175

Please sign in to comment.