maekawatoshiki/naglfar 封面
好玩项目
browserrusttoy

maekawatoshiki/naglfar

A toy web browser implemented in Rust from scratch

591语言:Rust来源:GitHub收录于 2026年10月27日

站内导读

中文 Naglfar 是用 Rust 写的实验性网页浏览器,作者目前主要精力放在自研的玩具 JavaScript 引擎 Rapidus 上。它能加载本地或网络 HTML 文件并渲染页面,但多数真实站点超出其处理能力。适合想了解浏览器渲染流程、学习 Rust 与 GTK 开发的读者阅读源码。

README · 详细文档

来源 · 查看原文

Naglfar

0 1

Naglfar is a toy web browser in Rust.

I'm focusing on developing a toy JavaScript engine: Rapidus.

Naglfar

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

同类项目 · 好玩项目