styrus

Crates.iostyrus
lib.rsstyrus
version0.1.2
sourcesrc
created_at2021-08-14 09:44:16.046034
updated_at2021-08-31 07:52:39.999613
descriptionStylus css compiler in Rust.
homepagehttps://github.com/jw/styrus
repositoryhttps://github.com/jw/styrus
max_upload_size
id436039
size61,862
Jan Willems (jw)

documentation

https://github.com/jw/styrus

README

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.

Commit count: 41

cargo fmt