diff options
author | jelemux <jeremias.weber@protonmail.com> | 2021-02-09 23:18:45 +0100 |
---|---|---|
committer | jelemux <jeremias.weber@protonmail.com> | 2021-02-09 23:18:45 +0100 |
commit | 036a567bae8346eb38f9237f59645dbcc4f1cd8c (patch) | |
tree | 21a86e3c5cb8964030c414718190af12f3d26125 /Readme.md | |
parent | 9df3ff8d633a18e934d4e62b0e2e718620760552 (diff) | |
download | wasm-card-036a567bae8346eb38f9237f59645dbcc4f1cd8c.tar.gz wasm-card-036a567bae8346eb38f9237f59645dbcc4f1cd8c.tar.bz2 |
switch to cargo-make; format files with rustfmt
Diffstat (limited to 'Readme.md')
-rw-r--r-- | Readme.md | 25 |
1 files changed, 17 insertions, 8 deletions
@@ -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 |