puppy-browser是一款基于 JavaScript V8 引擎和 Rust搭建的微型浏览器,遵守MIT开源协议,适合开发者用于学习和熟悉浏览器基础原理。
命令行安装:
cargo install --locked --path . --force
完成安装 puppy, 可以查看帮助:
puppy help
可以通过 shell 完整安装:
# in bash
eval "$(puppy completion bash)"
# in fish
puppy completion fish | source
https://github.com/lmt-swallow/puppy-browser/
--------------------------------------------------------------
puppy
puppy
is an example implementation of a tiny Web browser for educational purposes.
How to run puppy locally
You can run puppy program with the following command(s):
cargo run -- help
How to install puppy
You can install puppy by the following command(s):
cargo install --locked --path . --force
After you have successfully installed puppy, you can see help as follows:
puppy help
You can install shell completions as follows:
# in bash
eval "$(puppy completion bash)"
# in fish
puppy completion fish | source
How to run tests locally
You can run tests with the following command(s):
cargo test
How to speed up build process
You can cache files related to V8 as follows:
$ export RUSTY_V8_MIRROR=$HOME/.cache/rusty_v8
(...omitted...)
$ ./scripts/prepare-v8.sh
(...omitted...)
$ cargo build
(...omitted...)
from https://github.com/lmt-swallow/puppy-browser/