Add version command

This commit is contained in:
2025-06-25 20:04:33 +10:00
parent 82726ebb5d
commit 7ec60f0e6e
4 changed files with 619 additions and 14 deletions

View File

@@ -25,6 +25,16 @@ pub fn version() -> &'static str {
LUAJIT_VERSION.to_str().unwrap()
}
/// LuaJIT copyright string.
pub fn copyright() -> &'static str {
LUAJIT_COPYRIGHT.to_str().unwrap()
}
/// LuaJIT URL string.
pub fn url() -> &'static str {
LUAJIT_URL.to_str().unwrap()
}
/// Lua error.
#[derive(Debug, Error)]
#[non_exhaustive]