aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-07-30 20:17:25 +0200
committerMartin Fischer <martin@push-f.com>2022-07-30 22:21:23 +0200
commit56c071bb832304ba9a2ec67215b1a8ae40723840 (patch)
tree2282e1f0eafcf65e807f2e9120617401b705d75c /src/main.rs
parenta920436c3af249266ff907d15755c1291737905a (diff)
implement lua scripting
Inspired by the Scribunto extension for MediaWiki.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 8005892..9f30ef2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -46,6 +46,8 @@ mod diff;
mod error;
mod forms;
mod get_routes;
+#[cfg(feature = "lua")]
+mod lua;
mod origins;
mod post_routes;
mod shares;
@@ -99,6 +101,11 @@ async fn main() {
let repo = Repository::open_bare(repo_path)
.expect("expected current directory to be a bare Git repository");
+ #[cfg(feature = "lua")]
+ {
+ eprintln!("[warning] the Lua code sandboxing is experimental, write access might lead to a system compromise")
+ }
+
if args.multiuser {
serve(repo_path, MultiUserController::new(&repo), args).await;
} else {