Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.6 KB

README.md

File metadata and controls

56 lines (39 loc) · 1.6 KB

rust-lang-ve.github.io

:octocat: rust-lang-ve's GitHub Page made with Yew because we 💖 Rust!

🚴 Development

Requirements

  • GitHub Personal Access Token for GPM
  • NodeJS (Yarn)
  • Cargo

Setting up .npmrc to fetch GPM

This project makes use of a package served by GPM (GitHub Package Manager). In order to fetch this package you must create a .npmrc file in your home directory (touch ~/.npmrc), then go to https://github.com/settings/tokens and clic on Generate new token, create your token with full access to avoid issues fetching the package, copy your token to your clipboard and finally append the following to the .npmrc file you created before.

//npm.pkg.github.com/:_authToken=<YOUR PERSONAL ACCESS TOKEN>

Finally run yarn in the project directory to install packages.

IMPORTANT Do not share your Personal Access Token with anyone! This token grant access to your GitHub profile!

🛠️ Build

When building for the first time, ensure to install dependencies first.

yarn install
yarn run build

🔬 Serve locally

yarn run start

🔋 Batteries Included

  • wasm-bindgen for communicating between WebAssembly and JavaScript.
  • wee_alloc, an allocator optimized for small code size.