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
This commit is contained in:
François Mockers 2025-04-11 20:44:53 +02:00 committed by François Mockers
parent c4b3d75b46
commit 71a9142ded

View File

@ -53,8 +53,6 @@
//! use bevy_dylib; //! use bevy_dylib;
//! ``` //! ```
#![no_std]
// Force linking of the main bevy crate // Force linking of the main bevy crate
#[expect( #[expect(
unused_imports, unused_imports,