The Kosmonaut Browser Engine, Written in Rust, Unveiled

As part of the project Kosmonaut is a web engine developed entirely in Rust, utilizing some of the advancements from the Servo project. The code is distributed is licensed under MPL 2.0 (Mozilla Public License). OpenGL bindings are used for rendering gl-rs in Rust. Window management and OpenGL context creation are handled by the Glutinlibrary. For parsing HTML and CSS, components are used html5ever and cssparser, developed by the Servo.
project. The code for working with the DOM is based on the contributions from the Kuchikiproject, which develops a library for manipulating HTML/XML. Among the projects mentioned is also an experimental web engine Robinson, which has been in a semi-abandoned state for about 5 years.

At its current development stage, basic support for HTML and a limited set of CSS capabilities are provided, which is not yet sufficient for rendering most modern pages. However, simple pages using divs with CSS render correctly. Initially, the project was started a year ago to learn the process of developing web engines, but is now trying to find new niches for application.

What has already been implemented:

  • HTML parsing, a subset of CSS, cascading CSS, DOM model.
  • Page rendering, block layout of content.
  • Partial support for the abstract box model and properties like "direction«.
  • .
  • Formation of debug dumps with the tree of displayed elements.
  • Support for arbitrary scaling factors for High-DPI screens.
  • Support Text rendering using the FreeType library.Flow Layout

Source: opennet.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster