Skip to content

Commit

Permalink
Added optional bevy support.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmandBurger committed Dec 15, 2023
1 parent b8b4c38 commit 971aa22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ maintenance = { status = "actively-developed" }
num = "0.2"
derive_builder = "0.7"
serde = { version = "1.0.152", features = ["derive"], optional=true}
bevy = { version = "0.12.1", optional = true }

[features]
serde = ["dep:serde"]
bevy = ["dep:bevy"]


# Run cargo tests and cargo-clippy as a precommit-hook, per the example in
Expand Down
1 change: 1 addition & 0 deletions src/quadtree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ use std::{
/// [`.delete()`]: #method.delete
// TODO(ambuc): Implement `.delete_by(anchor, dimensions, fn)`: `.retain()` is the inverse.
// TODO(ambuc): Implement `FromIterator<(K, V)>` for `Quadtree`.
#[cfg_attr(feature = "bevy", derive(bevy::prelude::Resource))]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, PartialEq, Eq)]
pub struct Quadtree<U, V>
Expand Down

0 comments on commit 971aa22

Please sign in to comment.