Compare commits

..

No commits in common. "2568538cb3a5de4816ff1c7acf2811f3969ca8a2" and "64a4bc9e486c5e386672237316731a3c4a7063d6" have entirely different histories.

3 changed files with 6 additions and 4 deletions

View File

@ -5,7 +5,7 @@ flags:
-chdir <string> change working directory before codegen
-prefix <string> path prefix for file keys, none by default
-ignore <string> path globs to ignore (allowed multiple times)
-module-name <string> generated module name, 'main' by default
-const-name <string> generated constant name with data, 'embedfs' by default
-module-name <string> generated module name, main by default
-const-name <string> generated constant name with data, embedfs by default
-no-pub do not make symbols in generated module public
-force-mimetype set 'application/octet-stream' mime type for unknown files
-force-mimetype set applicetion/octet-stream mime type for unknown files

View File

@ -38,6 +38,8 @@ fn main() {
println(generator.generate())
}
@[xdoc: 'generate code for embed directories with files into executable.']
@[name: 'embedfs']
struct FlagConfig {
help bool
chdir string

View File

@ -1,6 +1,6 @@
EmbedFileSystem{
files: {'assets/example.json': EmbedFile{
data: embed_file.EmbedFileData{ len: 22, path: "assets/example.json", apath: "", uncompressed: 846284 }
data: embed_file.EmbedFileData{ len: 22, path: "assets/example.json", apath: "", uncompressed: 8462c4 }
meta: EmbedFileMetadata{
key: 'assets/example.json'
name: 'example.json'