basro / stylance-rs

Scoped CSS style imports for rust.
MIT License
41 stars 4 forks source link

Programmatic usage #3

Open numfin opened 1 month ago

numfin commented 1 month ago

Could you make stylance-cli functionality into library so i can put it inside build.rs ? This way i can use any version (even from git) of stylance generator functionality without installing binary on system

basro commented 4 weeks ago

I have nothing against supporting library usage of this lib so I'll consider adding this in the future.

I recommend checking out cargo-run-bin which is a nice tool for installing binaries per rust project instead of globally, it could serve as an alternative workaround for your issue. I have not tried it with stylance but have used it with other binary tools with success.