bevy/crates/bevy_reflect/src
Zachary Harrold 5f42c9ab6d
Fix no_std CI Warnings and WASM Compatibility (#17049)
# Objective

- Resolve several warnings encountered when compiling for `no_std`
around `dead_code`
- Fix compatibility with `wasm32-unknown-unknown` when using `no_std`
(identified by Sachymetsu on
[Discord](https://discord.com/channels/691052431525675048/692572690833473578/1323365426901549097))

## Solution

- Removed some unused imports
- Added `allow(dead_code)` for certain private items when compiling on
`no_std`
- Fixed `bevy_app` and `bevy_tasks` compatibility with WASM when
compiling without `std` by appropriately importing `Box` and feature
gating panic unwinding

## Testing

- CI
2024-12-30 23:01:27 +00:00
..
enums Deny derive_more error feature and replace it with thiserror (#16684) 2024-12-06 17:03:55 +00:00
func Prefer Display over Debug (#16112) 2024-12-27 00:40:06 +00:00
impls Fix no_std CI Warnings and WASM Compatibility (#17049) 2024-12-30 23:01:27 +00:00
path Deny derive_more error feature and replace it with thiserror (#16684) 2024-12-06 17:03:55 +00:00
serde Prefer Display over Debug (#16112) 2024-12-27 00:40:06 +00:00
array.rs Add no_std support to bevy_reflect (#16256) 2024-12-05 21:15:21 +00:00
attributes.rs Add no_std support to bevy_reflect (#16256) 2024-12-05 21:15:21 +00:00
fields.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
from_reflect.rs Add no_std support to bevy_reflect (#16256) 2024-12-05 21:15:21 +00:00
generics.rs Add no_std support to bevy_reflect (#16256) 2024-12-05 21:15:21 +00:00
kind.rs Update hashbrown to 0.15 (#15801) 2024-12-10 19:45:50 +00:00
lib.rs Rust 1.83, allow -> expect (missing_docs) (#16561) 2024-12-16 23:27:57 +00:00
list.rs Add no_std support to bevy_reflect (#16256) 2024-12-05 21:15:21 +00:00
map.rs Update hashbrown to 0.15 (#15801) 2024-12-10 19:45:50 +00:00
reflect.rs bevy_reflect: Remove PartialReflect::serializable (#16576) 2024-12-16 23:29:46 +00:00
reflectable.rs bevy_reflect: Add Reflectable trait (#5772) 2024-09-18 00:36:41 +00:00
remote.rs Add no_std support to bevy_reflect (#16256) 2024-12-05 21:15:21 +00:00
set.rs Update hashbrown to 0.15 (#15801) 2024-12-10 19:45:50 +00:00
std_traits.rs Add no_std support to bevy_reflect (#16256) 2024-12-05 21:15:21 +00:00
struct_trait.rs Add no_std support to bevy_reflect (#16256) 2024-12-05 21:15:21 +00:00
tuple_struct.rs Add no_std support to bevy_reflect (#16256) 2024-12-05 21:15:21 +00:00
tuple.rs Add no_std support to bevy_reflect (#16256) 2024-12-05 21:15:21 +00:00
type_info_stack.rs Add no_std support to bevy_reflect (#16256) 2024-12-05 21:15:21 +00:00
type_info.rs Deny derive_more error feature and replace it with thiserror (#16684) 2024-12-06 17:03:55 +00:00
type_path.rs Add no_std support to bevy_reflect (#16256) 2024-12-05 21:15:21 +00:00
type_registry.rs Add no_std support to bevy_reflect (#16256) 2024-12-05 21:15:21 +00:00
utility.rs Update hashbrown to 0.15 (#15801) 2024-12-10 19:45:50 +00:00