• Stars
    star
    114
  • Rank 308,031 (Top 7 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created almost 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A wasm ๐Ÿ•ธ template for Rust ๐Ÿฆ€ to publish to gh-pages without npm-deploy

Wasm template for Rust hosting without npm-deploy on github pages using Travis script

Last updated: 10th-March-2023

Build Status

It automatically hosts you wasm projects on gh-pages using a travis script on the latest commit.

Requirements

Steps :

For building :

  "dependencies": {
    "wasm-template-rust": "file:../pkg"
  },

Into :

  "dependencies": {
    "YOUR-PROJECT-NAME-SAME-AS-IN-CARGO.toml": "file:../pkg"
  },
  • Run wasm-pack build inside your project dictionary
  • Run npm install inside www folder
  • Next, modify www/index.js to import your PROJECT instead of the wasm-template-rust package
  • Again run npm install inside www folder (just to be sure)
  • Finally run npm run start inside www and visit http://localhost:8080 to see the results

For deployment :

The template comes with a preconfigured .travis.yml but you will still need to :

  • Create a new branch by the name gh-pages
  • Github pages should be enabled by default but if not go to Settings -> GitHub Pages and enable it on your gh-pages branch. You will also find the link to your to-be hosted page there
  • Make a personal access token (only the token no need for command line here)
  • Next we will need to put this token into our travis settings, go to more options -> settings -> Environment Variables and enter the token value (the generated token code) and name as GITHUB_TOKEN, it should look like : token

Additional :

License

Licensed under either of these:

More Repositories

1

Optimizing-linux

A simple guide for optimizing linux ๐Ÿง in detail
169
star
2

rust-ffi-examples

FFI examples written in Rust
Makefile
48
star
3

brainhug

A simple brainfuck translator crate in Rust
Rust
20
star
4

pakoda

A hobby programming language ๐Ÿฆ€ inspired by llvm's kaleidoscope
Rust
11
star
5

wasm-conway

Conway game of life in Rust + Wasm
Rust
10
star
6

dota2_webapi_bindings

Dota 2 webapi bindings for rust
Rust
9
star
7

firefox-css

My firefox ๐ŸฆŠ browser config
CSS
8
star
8

Hacktoberfest-2018

Here is a starter project for first time contributors #hacktoberfest
C
7
star
9

sn99

๐Ÿฆ€
7
star
10

DellG5SE-Linux

DellG5SE script for gaming/battery/normal usage
Shell
7
star
11

pokemon-text-game

A pokemon text based fight game written in Rust
Rust
7
star
12

vague-os

A hobby OS written in Rust
Rust
6
star
13

conway-game-of-life

Conway game of life in written in Rust
Rust
6
star
14

sn99_alfred_bot

A bot for telegram
JavaScript
6
star
15

rule_engine

Rust
6
star
16

custom_traceroute

simple tracerouting
Rust
5
star
17

driver

run driver.bat and see logs in debugview
Rust
5
star
18

travis

A repository to fuddle with travis
Rust
5
star
19

mandelbrot

Rust
5
star
20

mandelbrot-vulkan

Mandelbrot set
Rust
5
star
21

weird_os

Just a weird OS
Rust
5
star
22

scan_open_ports

Rust
5
star
23

goal

A rust bot for irc
Rust
5
star
24

grachical-tic-tac-toe

A graphical tic-tac-toe game written in Rust
Rust
5
star
25

sudoku-solver

A sudoku solver
Rust
5
star
26

s-shell

A simple "shell" made in Rust
Rust
5
star
27

maggi

flappy bird
Rust
5
star
28

sam

A bootloader
Assembly
4
star
29

college_thesis_notes

notes
4
star
30

lg-gram

Linux configs and tweaks for lg-gram laptops
3
star
31

minifilter-rust

Pure rust implementation of windows minifilters
Rust
3
star
32

Work-Life-Balance

Personal managed Android WorkSpace
Jupyter Notebook
2
star
33

unix-fsfilter-rs

fsfilter for unix
Rust
1
star
34

location_outliers

Rust
1
star
35

dbms-asap

College project on Employee Database And Payroll Management System
1
star
36

windows-snapshot

windows state
Rust
1
star
37

policy

Google MDM schema maker
Rust
1
star
38

network

Rust
1
star
39

tetragon-rust

Rust ebpf observability with Tetragon
Rust
1
star
40

credential-provider

experimental windows credential provider
Rust
1
star
41

advent-of-code

Advent of Code 2023
Rust
1
star
42

hackathon

Rust
1
star