rockspec_format = "3.0"
package = "lua-rax"
version = "0.0.2-1"

source = {
    url = "git+https://github.com/hanxi/lua-rax.git",
    tag = "v0.0.2",
}

description = {
    summary = "Radix-tree HTTP path routing for Lua",
    detailed = "Match HTTP methods and paths, with static routes, named parameters, and wildcards.",
    homepage = "https://github.com/hanxi/lua-rax",
    issues_url = "https://github.com/hanxi/lua-rax/issues",
    license = "MIT AND BSD-3-Clause",
    labels = { "routing", "http" },
}

dependencies = {
    "lua >= 5.3, < 5.6",
}

build = {
    type = "builtin",
    modules = {
        rax = "rax.lua",
        ["rax.core"] = { sources = { "lua_rax.c", "rax.c" } },
    },
}
