Registry / other / seldom-fn-plugin

seldom-fn-plugin

JSON →
library0.6.0rscratesunverified

Allows using Rust functions in place of Bevy plugins.

# Cargo.toml [dependencies] seldom_fn_plugin = "0.6.0"
INSTALL
IMPORT
SIG · SELDOM-FN-PLUGIN
S
seldom-fn-plugin
otherrustv0.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FnPlugin
✓ use seldom_fn_plugin::FnPlugin;

Registers a function as a Bevy plugin.

use seldom_fn_plugin::FnPlugin; use bevy::prelude::*; fn my_plugin(app: &mut App) { app.add_system(|| println!("Hello")); } fn main() { App::new().add_plugin(FnPlugin(my_plugin)).run(); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Bingbot
1
Resources
seldom-fn-plugin — cargo add seldom-fn-plugin · libregistry