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

A convenient way to get the dart-sass-embedded for user #15

Open
2 tasks
ahabhgk opened this issue Aug 22, 2022 · 0 comments
Open
2 tasks

A convenient way to get the dart-sass-embedded for user #15

ahabhgk opened this issue Aug 22, 2022 · 0 comments
Labels
help wanted Extra attention is needed
Milestone

Comments

@ahabhgk
Copy link
Owner

ahabhgk commented Aug 22, 2022

For now, the main pain point of using this crate is the user needs to install the dart-sass-embedded into their app and pass the path to Sass::new, it is very inconvenient and needs the user knowing some sass knowledges and the source code of this crate to fully understand why they need to do that. So we need a convenient way to get the dart-sass-embedded for the user to let them don't need to worry about all the troubles or sass knowledges.

  • build script: a build script crate like prost_build, this build script crate will install the dart-sass-embedded and get the path where it installed at the build time. It's easy to implement, but the output can't be a single binary execution.
  • embed the dart vm: embed the dart vm into this crate, and load the .snapshot file as Vec<u8> at build time. This way the output can be a single binary execution, but the crate size will increase lots, and can't use the same dart vm/dart-sass-embedded when the user's project already using the dart vm/dart-sass-embedded.

The two ways is not mutually exclusive but complementary, the user can use cargo features to choose which way to use.

Tracking issue:

@ahabhgk ahabhgk added the help wanted Extra attention is needed label Aug 22, 2022
@ahabhgk ahabhgk pinned this issue Aug 22, 2022
@ahabhgk ahabhgk added this to the v1.0.0 milestone Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant