From 036a567bae8346eb38f9237f59645dbcc4f1cd8c Mon Sep 17 00:00:00 2001 From: jelemux Date: Tue, 9 Feb 2021 23:18:45 +0100 Subject: switch to cargo-make; format files with rustfmt --- Readme.md | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'Readme.md') diff --git a/Readme.md b/Readme.md index cb0e50a..b257c04 100644 --- a/Readme.md +++ b/Readme.md @@ -32,23 +32,32 @@ Supports generating vCards (.vcf), print-ready PDF business cards and QR Codes. * [Standard rust toolchain](https://www.rust-lang.org/tools/install) * [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/) -* HTTP Server (python has one!) +* cargo-make: `cargo install cargo-make` -### 📦 Build with `wasm-pack build` - +### 📦 Build +Debug: +``` +cargo make build +``` +Release: ``` -wasm-pack build --target web +cargo make build_release ``` -### 🔍 Use the debug flag for tracing errors +### 🍲 Serve ``` -wasm-pack build --debug --target web +cargo make serve ``` -### 🎬 Run on python server +### 🔍 Linting + +``` +cargo make clippy +``` +### 📏 Format ``` -python -m http.server 8000 +cargo make fmt ``` \ No newline at end of file -- cgit v1.2.3