1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pub mod de;
pub mod markers;
pub mod ser;

use piccolo::Lua;

pub use self::{
    de::from_value,
    ser::{to_value, to_value_with, Options as SerOptions},
};

pub trait LuaSerdeExt {
    fn load_serde(&mut self);
}

impl LuaSerdeExt for Lua {
    fn load_serde(&mut self) {
        self.enter(|ctx| markers::set_globals(ctx));
    }
}