Skip to content
A simple PNaCl app (in Rust!) that prints "Hello, world!" on Chrome's developer console.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.gitmodules
Cargo.toml
LICENSE
Makefile
README.md
debug.nmf
index.debug.html
index.html
manifest.nmf

README.md

PNaCl says Hi with Rust

A simple PNaCl app (in Rust!) that prints "Hello, world!" on the browser's developer console.

Taste Testing

  • Sorry, but this is currently linux only (maybe MacOS too, but your mileage will likely vary).

Ingredients and Prep

  • Pepper SDK
    • Install pepper_39 or above from the NaCl SDK.
  • The PNaCl Rust fork
    • Configure with (must be out-of-tree): path/to/rust/configure --target=le32-unknown-nacl --nacl-cross-path=path/to/pepper
  • Build Rust (Nightlies comming Soon(TM)):
    • $ make -j 4
  • Install:
    • $ sudo make install

Cooking and Serving

  • Run make NACL_SDK_ROOT=path/to/pepper serve in a cloned copy of this repo.

After its finished building, it'll open a new tab in Chrome!

Note:

The build will take longer than what the amount of source would otherwise indicate. This is normal, even for debug builds, and is a result of the way the PNaCl IR legalization works (it's basically LTO).

You can’t perform that action at this time.