Skip to content

Commit c81f562

Browse files
authored
N36: hecs (#1103)
1 parent a67ded7 commit c81f562

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

content/news/036/index.md

+15
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,21 @@ post on the Discussion boards!
107107

108108
## Library Updates
109109

110+
### [hecs]
111+
112+
[hecs] is a fast, lightweight, and unopinionated archetypal ECS library.
113+
114+
[Version 0.8][hecs-changelog] marks a breaking change to most methods that
115+
previously took a generic type parameter `T: Component`, replacing them with
116+
methods taking type parameters which must be *references to* component types
117+
instead. This resolves a long-standing footgun where users accustomed to writing
118+
`&T` in queries might write `world.get::<&T>`, interpreted by rustc as
119+
referencing the valid component type `&'static T`, resulting in code that
120+
compiles but fails to access the intended component.
121+
122+
[hecs]: https://github.com/Ralith/hecs
123+
[hecs-changelog]: https://github.com/Ralith/hecs/blob/master/CHANGELOG.md#080
124+
110125
## Popular Workgroup Issues in Github
111126

112127
<!-- Up to 10 links to interesting issues -->

0 commit comments

Comments
 (0)