Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support user-defined functions in rust #4

Merged
merged 8 commits into from
May 1, 2017
Merged

Conversation

kaj
Copy link
Owner

@kaj kaj commented Apr 29, 2017

A program using rsass as a library should be able to define functions in rust. An example use-case is that ructe should be able to define a function to get the uniquified url of a static file.

This means that Scopes and the Value type needs to be public.

Enough to at least define a global variable before parsing
the file.
@kaj kaj mentioned this pull request Apr 29, 2017
15 tasks
@kaj kaj merged commit d5d10b9 into master May 1, 2017
kaj added a commit that referenced this pull request May 6, 2017
A default run of sass-spec found 1039 of 3299 tests passing (or 1097
of 6054 when claiming to be libsass). Changes since version 0.2.0
includes:

* PR #4: Support application-defined functions in rust.
* Equal strings are equal even if the quoting differs
  (e.g. foo == "foo").
* Improved value parsing in many ways.
* Implemened numeric rounding rules to match libsass default.
* Improved handling of null values.
* Fix some minor output formatting issues.
* Handle arguments to pseudo-selectors (which are themselfs selectors)
  properly.
* Support for rust 1.14 is dropped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant