3 releases

0.1.2 Aug 31, 2021
0.1.1 Aug 30, 2021
0.1.0 Aug 14, 2021

#8 in #stylus

AGPL-3.0-or-later

21KB
293 lines

Styrus

A Stylus css compiler in Rust.

Install

$ cargo install styrus

Real basic compilation is possible

Given file tests/test.stylus containing

*h1 > p
  border 1px

h2
  padding 1px 1px 1px 1px

A compile renders:

$ styrus tests/test.stylus
*h1 > p {
  border 1px
}
h2 {
  padding 1px 1px 1px 1px
}

Environment variable

The RUST_LOG can be set to info to get all the details of the AST.

Like RUST_LOG=info styrus tests/test.stylus.

Dependencies

~6–8MB
~143K SLoC