Leafwing-Studios / leafwing_2d

Helper functions and structs for working with 2D space in Bevy.
Apache License 2.0
14 stars 2 forks source link

Break crate into many tiny features #20

Open alice-i-cecile opened 2 years ago

alice-i-cecile commented 2 years ago

Important for inclusion in leafwing_input_manager.

alice-i-cecile commented 2 years ago

Breaking apart the bundle is blocked on https://github.com/rust-analyzer/rust-analyzer/issues/11661

alice-i-cecile commented 2 years ago

Initial breakdown:

[features]
default = ["plugin", "bundles", "bounding"]
plugin = ["systems"]
bundles = ["orientation", "position", "kinematics", "continuous", "discrete"]
systems = []
orientation = []
position = []
kinematics = []
bounding = []
continuous = []
discrete = []
alice-i-cecile commented 2 years ago

I can't get this to work immediately: the tests and examples are failing to detect imports correctly when using feature flags, and the linked issue above is blocking other improvements.

Going to set this aside for now.