teamtalk 6.0.0

TeamTalk SDK for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[cfg(feature = "plugins")]
use teamtalk::extensions::plugins::PluginManager;

#[cfg(feature = "plugins")]
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut manager = PluginManager::new();
    manager.load("sample", "plugins/sample_plugin.dll")?;
    Ok(())
}

#[cfg(not(feature = "plugins"))]
fn main() {
    eprintln!("Enable plugins feature: cargo run --example plugin_loader --features plugins");
}