Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maekawatoshiki/naglfar
A toy web browser implemented in Rust from scratch
https://github.com/maekawatoshiki/naglfar
browser rust toy
Last synced: 3 days ago
JSON representation
A toy web browser implemented in Rust from scratch
- Host: GitHub
- URL: https://github.com/maekawatoshiki/naglfar
- Owner: maekawatoshiki
- License: mit
- Created: 2018-01-15T08:21:48.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-24T12:09:58.000Z (almost 2 years ago)
- Last Synced: 2024-11-06T06:12:29.657Z (10 days ago)
- Topics: browser, rust, toy
- Language: Rust
- Homepage:
- Size: 52.6 MB
- Stars: 576
- Watchers: 31
- Forks: 22
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-web-browsers - Nagalfar - a toy web browser implemented in rust from scratch
README
# Naglfar
[![CircleCI](https://circleci.com/gh/maekawatoshiki/naglfar.svg?style=shield)](https://circleci.com/gh/maekawatoshiki/naglfar)
[![codecov](https://codecov.io/gh/maekawatoshiki/naglfar/branch/master/graph/badge.svg)](https://codecov.io/gh/maekawatoshiki/naglfar)
[![](http://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)Naglfar is a toy web browser in Rust.
**I'm focusing on developing a toy JavaScript engine: ![Rapidus](https://github.com/maekawatoshiki/rapidus).**
![Naglfar](https://raw.githubusercontent.com/maekawatoshiki/naglfar/master/screenshot.gif)
# Try Naglfar
## Requisites
- Nightly Rust (recommend [rustup](https://www.rustup.rs/))
- GTK (for gtk-rs)## Run
A blank window will appear if you run Naglfar with no option.
```sh
$ cargo run
```Give the local html file (e.g. ./example/test.html):
```sh
$ cargo run file://`pwd`/example/test.html
```Give the html file on the Internet:
(But most of web sites are too much for Naglfar...)```sh
$ cargo run https://maekawatoshiki.github.io/naglfar/example/test.html
```# Reference
Great thanks to [robinson](https://github.com/mbrubeck/robinson)