Skip to content

Commit 88f863e

Browse files
authored
don't disable std in bevy_dylib (#18807)
# Objective - `bevy_dylib` currently doesn't build independently ``` cargo build -p bevy_dylib Compiling bevy_dylib v0.16.0-rc.4 (/crates/bevy_dylib) error: no global memory allocator found but one is required; link to std or add `#[global_allocator]` to a static item that implements the GlobalAlloc trait error: `#[panic_handler]` function required, but not found error: unwinding panics are not supported without std | = help: using nightly cargo, use -Zbuild-std with panic="abort" to avoid unwinding = note: since the core library is usually precompiled with panic="unwind", rebuilding your crate with panic="abort" may not be enough to fix the problem error: could not compile `bevy_dylib` (lib) due to 3 previous errors ``` ## Solution - remove `#![no_std]` from `bevy_dylib` ## Testing - it builds now
1 parent ac52cca commit 88f863e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

crates/bevy_dylib/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@
5353
//! use bevy_dylib;
5454
//! ```
5555
56-
#![no_std]
57-
5856
// Force linking of the main bevy crate
5957
#[expect(
6058
unused_imports,

0 commit comments

Comments
 (0)