Skip to content

Commit

Permalink
Fixed our circular insanity
Browse files Browse the repository at this point in the history
Co-Authored-By: Cazdotsys <[email protected]>
  • Loading branch information
tristanpoland and Caznix committed Dec 13, 2024
1 parent 6bd4d96 commit 4b34e44
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
22 changes: 22 additions & 0 deletions plugin_api/src/plugin_imports.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// This file is automatically generated by build.rs
// Do not edit this file manually!

use horizon_plugin_api::{Pluginstate, LoadedPlugin, Plugin};
use std::collections::HashMap;

pub use chronos_plugin;
pub use chronos_plugin::*;
pub use chronos_plugin::Plugin as chronos_plugin_plugin;
pub use player_lib;
pub use player_lib::*;
pub use player_lib::Plugin as player_lib_plugin;


// Invoke the macro with all discovered plugins
pub fn load_plugins() -> HashMap<String, (Pluginstate, Plugin)> {
let plugins = crate::load_plugins!(
chronos_plugin,
player_lib
);
plugins
}
4 changes: 1 addition & 3 deletions plugins/chronos_plugin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@ horizon-plugin-api = "0.2.0"
horizon_data_types = "0.4.0"
lazy_static = "1.5.0"
parking_lot = "0.12.3"
socketioxide = "0.15.1"

plugin_imports = { path = "../../plugin_imports", version = "0.1.0" }
socketioxide = "0.15.1"
4 changes: 1 addition & 3 deletions plugins/player_lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@ PebbleVault = "0.6.1"
horizon-plugin-api = "0.2.0"
horizon_data_types = "0.4.0"
socketioxide = "0.15.1"
parking_lot = "0.12.3"

plugin_imports = { path = "../../plugin_imports", version = "0.1.0" }
parking_lot = "0.12.3"

0 comments on commit 4b34e44

Please sign in to comment.