#bevy-plugin #bevy #dynamic #loading #game-engine #platform #data-driven

bevy_dynamic_plugin

Provides dynamic plugin loading capabilities for non-wasm platforms

27 releases

0.14.2 Sep 6, 2024
0.14.0 Jul 4, 2024
0.13.1 Mar 18, 2024
0.12.1 Nov 30, 2023
0.3.0 Nov 3, 2020

#20 in #data-driven

Download history 313/week @ 2024-07-04 554/week @ 2024-07-11 790/week @ 2024-07-18 761/week @ 2024-07-25 755/week @ 2024-08-01 1210/week @ 2024-08-08 782/week @ 2024-08-15 745/week @ 2024-08-22 789/week @ 2024-08-29 826/week @ 2024-09-05 701/week @ 2024-09-12 793/week @ 2024-09-19 809/week @ 2024-09-26 421/week @ 2024-10-03 361/week @ 2024-10-10 408/week @ 2024-10-17

2,166 downloads per month
Used in 7 crates (via bevy_internal)

MIT/Apache

150KB
2K SLoC

Bevy Dynamic Plugin

License Crates.io Downloads Docs Discord


lib.rs:

Bevy's dynamic plugin loading functionality.

This crate allows loading dynamic libraries (.dylib, .so) that export a single Plugin. For usage, see dynamically_load_plugin.

Deprecation

The current dynamic plugin system is unsound and will be removed in 0.15. You may be interested in the Alternatives listed below. If your use-case is not supported, please consider commenting on #13080 describing how you use dynamic plugins in your project.

Warning

Note that dynamic linking and loading is inherently unsafe because it allows executing foreign code. Additionally, Rust does not have a stable ABI and may produce incompatible libraries across Rust versions, or even subsequent compilations. This will not work well in scenarios such as modding, but can work if the dynamic plugins and the main app are built at the same time, such as with Downloadable Content (DLC) packs.

Alternatives

You may be interested in these safer alternatives:

Dependencies

~10–17MB
~209K SLoC