From 71a9142deda547a872da3cc2b6a6300bad6e86a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mockers?= Date: Fri, 11 Apr 2025 20:44:53 +0200 Subject: [PATCH] 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 --- crates/bevy_dylib/src/lib.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/crates/bevy_dylib/src/lib.rs b/crates/bevy_dylib/src/lib.rs index 982ef0207d..1ff40ce3e8 100644 --- a/crates/bevy_dylib/src/lib.rs +++ b/crates/bevy_dylib/src/lib.rs @@ -53,8 +53,6 @@ //! use bevy_dylib; //! ``` -#![no_std] - // Force linking of the main bevy crate #[expect( unused_imports,