sassers

Crates.iosassers
lib.rssassers
version0.13.5-h28
sourcesrc
created_at2015-06-05 02:08:51.7226
updated_at2017-04-09 00:38:22.829825
descriptionA Sass compiler in Rust
homepage
repositoryhttps://github.com/carols10cents/sassers
max_upload_size
id2308
size106,884
Carol (Nichols || Goulding) (carols10cents)

documentation

README

Sassers

A Sass compiler written natively in Rust.

Build Status Build status

Incomplete!!!! To see current progress:

  • Clone this project and cargo build
  • Clone sass-spec and get ruby and all that good stuff
  • In sass-spec, run `./sass-spec.rb -c '/path/to/your/sassers/executable'

Last run I did was 205 passing and 4294 failing out of 4499 tests. So yeah, REALLY NOT DONE YET.

Progress bar: [=-------------------]

Sassers follows Sentimental Versioning.

License

MIT. See LICENSE.

Optimizations

  • Pass T: Write down into methods instead of returning String all the time to avoid allocating so many times

TODO

  • Compare speed/memory usage to libsass
  • Profile if it's significantly worse than libsass and fix
  • Abstract variable/parameter HashMaps into a context or binding object with nice insertion and accessing methods

Useful debugging incantation

To get debugging statements and run a particular test:

  • Add extern crate env_logger; to the test module
  • Add let _ = env_logger::init(); to the particular test function
  • Run:
$ RUST_LOG=sassers=debug cargo test -- --nocapture evaluator::tests::it_subtitutes_variable_values
Commit count: 512

cargo fmt