-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate embed code instead of using interpolation (#828)
Because the output path of the embedded files changes per machine, the interpolate-folder-path feature of rust-embed was used to set the correct embed path. This feature however creates a rather large dependency tree (shell_expand -> dirs -> dirs-sys -> option-ext) By generating a small file with the correct folder already filled in, then including it in lib.rs we can remove this feature and reduce the amount of dependencies that are used. Implementation was inspired by how the "built" crate recommends people to use it.
- Loading branch information
Showing
3 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters