mirror of
https://github.com/lune-org/lune.git
synced 2025-04-10 21:40:54 +01:00
16 lines
298 B
Rust
16 lines
298 B
Rust
#![allow(clippy::cargo_common_metadata)]
|
|
|
|
use mlua::prelude::*;
|
|
|
|
use lune_utils::TableBuilder;
|
|
|
|
/**
|
|
Creates the `datetime` standard library module.
|
|
|
|
# Errors
|
|
|
|
Errors when out of memory.
|
|
*/
|
|
pub fn module(lua: &Lua) -> LuaResult<LuaTable> {
|
|
TableBuilder::new(lua)?.build_readonly()
|
|
}
|