-
Notifications
You must be signed in to change notification settings - Fork 41
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
Find takes a path #15
Comments
Yes, please! My use case is: I want to serve a web app from a web server, the web app consists of multiple assets files which I want to embed into the exe using this crate. In the request handler I get a relative path, which I want to use to get the file from this embedded folder hierarchy. Basically I want to do something like this but for actix and rocket: Btw, the docs on docs.rs don't include the |
I've pretty much rewritten this crate from scratch to use a true proc macro. The generated Dir type has both a @Boscop if you have the time, could you look at the updated crate on docs.rs and let me know whether this works for you? |
At the moment, the
Dir::find()
function only checks to see if a file's name (everything after the last/
) is the same as the specified string. In some situations you may want to provide a file path relative to the embedded directory's root (because of naming conflicts across dirs, etc).Dir::find()
should have a signature which takes anything which isAsRef<Path>
.The text was updated successfully, but these errors were encountered: