Skip to main content

lux_lib/luarocks/
mod.rs

1pub mod install_binary_rock;
2pub mod luarocks_installation;
3pub mod rock_manifest;
4
5/// Retrieves the target compilation platform and returns it as a luarocks identifier.
6pub(crate) fn current_platform_luarocks_identifier() -> String {
7    let platform = match std::env::consts::OS {
8        "macos" => "macosx",
9        p => p,
10    };
11    format!("{}-{}", platform, std::env::consts::ARCH)
12}