站内导读
中文 Naglfar 是用 Rust 写的实验性网页浏览器,作者目前主要精力放在自研的玩具 JavaScript 引擎 Rapidus 上。它能加载本地或网络 HTML 文件并渲染页面,但多数真实站点超出其处理能力。适合想了解浏览器渲染流程、学习 Rust 与 GTK 开发的读者阅读源码。
日本語 Naglfar は Rust で書かれた実験用ウェブブラウザです。作者は現在、自作の JavaScript エンジン Rapidus の開発を優先しています。ローカルやネット上の HTML を読み込んで描画できますが、実際の多くのサイトには対応しきれません。ブラウザの描画処理や Rust、GTK の学習に向いています。
한국어 Naglfar는 Rust로 작성된 실험용 웹 브라우저다. 작성자는 현재 직접 만든 JavaScript 엔진 Rapidus 개발에 집중하고 있다. 로컬이나 인터넷의 HTML 파일을 불러와 렌더링할 수 있지만 대부분의 실제 사이트는 처리하기 어렵다. 브라우저 렌더링 과정과 Rust, GTK를 공부하려는 사람에게 적합하다.
English Naglfar is a toy web browser written in Rust. Its author now focuses on Rapidus, a toy JavaScript engine. It can load and render local or remote HTML files, though most real websites exceed its capabilities. It suits readers who want to study browser rendering internals or learn Rust and GTK through source code.
README · 详细文档
来源 · 查看原文
Naglfar
Naglfar is a toy web browser in Rust.
I'm focusing on developing a toy JavaScript engine: .

Try Naglfar
Requisites
- Nightly Rust (recommend rustup)
- GTK (for gtk-rs)
Run
A blank window will appear if you run Naglfar with no option.
$ cargo run
Give the local html file (e.g. ./example/test.html):
$ cargo run file://`pwd`/example/test.html
Give the html file on the Internet: (But most of web sites are too much for Naglfar...)
$ cargo run https://maekawatoshiki.github.io/naglfar/example/test.html
Reference
Great thanks to robinson