Files
http-rs/src/examples/plugins/todo.md
T

886 B
Raw Blame History

mlua-plugin-addition todo list

implemented ("working")

  • cli args
    --lua-plugin and --lua-arg (multiple) added with clap

  • lua scripting
    lua_plugin.rs with LuaRouter userdata

  • file server mounting from lua
    router:add_file_server(prefix, root) paths relative to plugin file

  • route registration from lua
    router:add_static(path, status, body, content_type)

  • fallback static file server
    Original resolve_fs logic still works for non lua routes

  • pass cli args to lua
    Accessible as args table inside Lua scripts.

fixing implementing needed

  • better error messages from Lua
    log something at all. write a custom logger ; and use logger_rs for it

  • hot reload of lua plugins
    i want this

  • more lua api functions
    very bare bones right now