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

Expose custom transforms visitor API #1

Open
pydsigner opened this issue Aug 17, 2023 · 1 comment
Open

Expose custom transforms visitor API #1

pydsigner opened this issue Aug 17, 2023 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@pydsigner
Copy link
Owner

The JavaScript bindings for lightningcss expose a powerful API for transforming CSS: https://lightningcss.dev/transforms.html. This functionality would be valuable, especially for projects like https://github.com/pydsigner/anchovy_css.

@pydsigner pydsigner added the enhancement New feature or request label Aug 17, 2023
@pydsigner pydsigner added this to the v1.0.0 milestone Aug 17, 2023
@pydsigner
Copy link
Owner Author

https://docs.rs/lightningcss/1.0.0-alpha.44/lightningcss/visitor/index.html

The basis of our implementation should be a PyVisitor struct. This will have to wrap a RustVisitor struct that implements lightningcss::visitor::Visitor; Visitor itself involves lifetime parameters, which must be abstracted away from PyO3 (https://pyo3.rs/v0.19.2/class#no-lifetime-parameters).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant