mbrubeck/robinson
mbrubeck/robinson has 1,658 GitHub stars and 143 forks. GitHot measured +1 stars in 24 hours, 0 in 7 days, and 0 in 15 days. Last checked 2026-11-23 09:15 UTC. Last push 2024-07-16.
측정된 스타 증가
- in 24h
- +1
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
장난감 수준의 웹 렌더링 엔진
창작 및 미디어README.md
OriginalRobinson
A toy web rendering engine written in the Rust language, by Matt Brubeck ([email protected]).
I'm writing this code purely for educational purposes. My goal is to create an incomplete but extremely simple engine as a way to learn more about basic implementation techniques, without worrying about complications like:
Real-world usabilityStandards compliancePerformance and efficiencyInteroperability
These are all important goals, but there are other projects working on them. By ignoring them completely, this project can focus on being as simple and easy-to-understand as possible.
Why create a simple—but useless—toy rendering engine? Mostly because I personally want to learn how to do it. If I succeed, I also hope that other people can learn from my code by reading or modifying it, or learn from my experience as they set out to build their own toy browser engines.
For more details see Let's build a browser engine!, a series of how-to articles based on this project.
Status
Currently implemented:
- Parse a small subset of HTML and build a DOM tree.
- Parse a small subset of CSS.
- Perform selector matching to apply styles to elements.
- Basic block layout.
Coming soon, I hope:
- Inline layout.
- Paint text and boxes.
- Load resources from network or filesystem.
Instructions
Clone the robinson source code from https://github.com/mbrubeck/robinson
Run
cargo buildto build robinson, andcargo runto run it.
To build and run with optimizations enabled, use cargo build --release and
cargo run --release.
By default, robinson will load test.html and test.css from the examples
directory. You can use the --html and --css arguments to the robinson
executable to change the input files:
./target/debug/robinson --html examples/test.html --css examples/test.css
The rendered page will be saved to a file named output.png. To change the
output filename, use the -o option. To switch to PDF output, use add
--format pdf.
관련 프로젝트 살펴보기
불러오는 중…