Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c81f562

Browse filesBrowse files
authored
N36: hecs (rust-gamedev#1103)
1 parent a67ded7 commit c81f562
Copy full SHA for c81f562

File tree

1 file changed

+15
-0
lines changed
Filter options

1 file changed

+15
-0
lines changed

‎content/news/036/index.md

Copy file name to clipboardExpand all lines: content/news/036/index.md
+15Lines changed: 15 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.