leighleighleigh / wasm-globe

An implementation of a rotatable globe in Rust WebAssembly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Globe

About

An implementation of a rotating globe in Rust WebAssembly.

Image of globe

Data sourced from Natural Earth is transformed into Rust code during compilation using a build script.

Prerequisites

Install Rust and wasm-pack.

Build

wasm-pack build --target web

or optimised for release

wasm-pack build --target web --release

Run

Some options to serve the application include:

# Python 3.x
python3 -m http.server
# Python 2.x
python -m SimpleHTTPServer
# JDK 18 or later
jwebserver

Access via a web browser at http://localhost:8000.

About

An implementation of a rotatable globe in Rust WebAssembly

License:MIT License


Languages

Language:HTML 68.0%Language:Rust 31.7%Language:JavaScript 0.3%