autosway 0.4.1

Automation program
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;

pub struct Extra;
impl Module for Extra {
    async fn load(&self, state: &mut State) -> Result<(), LuaError> {
        let module = state
            .lua
            .load(include_str!("../../../lua/extra.lua"))
            .call_async::<LuaTable>(LuaValue::Nil)
            .await?;

        create_module(&state.lua, "autosway.extra", module)?;

        Ok(())
    }
}