1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use crate::load::MrbLoadSources; use crate::Mrb; use crate::MrbError; pub fn init(interp: &Mrb) -> Result<(), MrbError> { interp.def_rb_source_file("json.rb", include_str!("json.rb"))?; interp.def_rb_source_file("json/common.rb", include_str!("json/common.rb"))?; interp.def_rb_source_file( "json/generic_object.rb", include_str!("json/generic_object.rb"), )?; interp.def_rb_source_file("json/version.rb", include_str!("json/version.rb"))?; interp.def_rb_source_file("json/pure.rb", include_str!("json/pure.rb"))?; interp.def_rb_source_file( "json/pure/generator.rb", include_str!("json/pure/generator.rb"), )?; interp.def_rb_source_file("json/pure/parser.rb", include_str!("json/pure/parser.rb"))?; Ok(()) }