#packaging #ssr #tool #command #reactive #projects #vertigo

build vertigo-cli

Reactive Real-DOM library with SSR for Rust - packaging/serving tool

9 releases

0.4.3 Feb 28, 2024
0.4.2 Feb 6, 2024
0.4.1 Dec 2, 2023
0.4.0 Nov 8, 2023
0.2.0 Mar 25, 2023

#243 in WebAssembly

Download history 2/week @ 2024-02-02 3/week @ 2024-02-16 95/week @ 2024-02-23 32/week @ 2024-03-01 6/week @ 2024-03-08 1/week @ 2024-03-15

134 downloads per month

MIT/Apache

185KB
5K SLoC

vertigo-cli

A packaging tool and server for vertigo library

crates.io Documentation MIT or Apache 2.0 licensed Dependency Status downloads

This package provides vertigo binary that allows to create, build, serve and watch vertigo-based projects.

Packaging steps performed during build command:

  1. Runs cargo build
  2. Gathers artifacts produced during the build and by vertigo / vertigo-macro libraries:
    • index.html
    • wasm_run.js
    • your_project.wasm
    • included static files
  3. Optimizes your .wasm file using wasm-opt
  4. Adds hashes to filenames[^hashes] (to bypass browser's cache)
  5. Places everything in the build dictionary

Installation

cargo install --force vertigo-cli

Example usage

Generate new project

vertigo new my_blog

Build the project

cd my_blog
vertigo build

Serve project

vertigo serve --host 0.0.0.0 --port 8000

Watch project

vertigo watch --disable-wasm-opt

[^hashes]: Except hashes for included static files - these are computed by vertigo-macro library

Dependencies

~31–49MB
~839K SLoC