From ba2177abf0b642c74e437426fa53d0cbcdfccd30 Mon Sep 17 00:00:00 2001 From: ddidderr Date: Sun, 10 Nov 2024 20:51:40 +0100 Subject: [PATCH] [docs] README.md added --- README.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..f8dbf05 --- /dev/null +++ b/README.md @@ -0,0 +1,42 @@ +# lanspread + +## Description + +Simple server and GUI for LAN parties. + + +## Development + +### Prerequisites +```bash +# install Tauri CLI +cargo install tauri-cli --version "^2.0.0" + +# install trunk (Build, bundle & ship your Rust WASM application to the web) +cargo install trunk +# alternatively if you have problems (i.e. on Windows) +cargo install cargo-binstall +cargo binstall trunk + +# install Rust WASM target +rustup target add wasm32-unknown-unknown +``` + +### Build +#### Frontend +```bash +# Development +cargo tauri dev # prefix with RUST_LOG=your_module=debug or similary for more verbose output + +# Production +cargo tauri build --profile release-lto # also bundles everything into a nice platform-specific installer +``` + +#### Backend +```bash +# Development +./server.sh # prefix with RUST_LOG=your_module=debug or similary for more verbose output + +# Production +cargo build --profile release-lto +```