A simple PNaCl app (in Rust!) that prints "Hello, world!" on the browser's developer console.
- Sorry, but this is currently linux only (maybe MacOS too, but your mileage will likely vary).
- Pepper SDK
- Install
pepper_39
or above from the NaCl SDK.
- Install
- 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
- Configure with (must be out-of-tree):
- Build Rust (Nightlies comming Soon(TM)):
$ make -j 4
- Install:
$ sudo make install
- 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!
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).