lux-lib 0.12.0

Library for the lux package manager for Lua
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub mod install_binary_rock;
pub mod luarocks_installation;
pub mod rock_manifest;

/// Retrieves the target compilation platform and returns it as a luarocks identifier.
pub(crate) fn current_platform_luarocks_identifier() -> String {
    let platform = match std::env::consts::OS {
        "macos" => "macosx",
        p => p,
    };
    format!("{}-{}", platform, std::env::consts::ARCH)
}