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

Option to not include file contents #238

Closed
ddfisher opened this issue Mar 8, 2024 · 1 comment
Closed

Option to not include file contents #238

ddfisher opened this issue Mar 8, 2024 · 1 comment

Comments

@ddfisher
Copy link
Contributor

ddfisher commented Mar 8, 2024

I'm working on an app which is compiled for both platform-native and WASM builds. We're currently bundling all the assets into the binary (using rust-embed) for both native and WASM, but we're in the process of moving many of the assets out of the binary for the WASM builds in order to enable faster loading times on web. We're planning on following the standard cache busting URL pattern by including the hash in the URL, so it'd be handy to be able to look up the hash by filename. (It'd also be helpful to statically know the contents of the directory.) Effectively, on WASM, we want exactly the metadata that rust-embed already provides, just without the actual contents of the files themselves.

I'm starting to look into implementing this. Is it something you'd be open to PRs for?

@pyrossh
Copy link
Owner

pyrossh commented Mar 9, 2024

Yes we accept PRs. You can add the option and will review it. I wonder of this would be suitable for a new feature 🤔.

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

No branches or pull requests

2 participants