#comptime io read and embedding files

1 messages · Page 1 of 1 (latest)

daring bear
#

Is there any way to get a list of the files in a source tree directory so that one can cycle through them at comptime and @embed them, storing them in a slice or something? Or is it necessary that you manually know all the files you will embed?

hasty raft
#

one of zig's focuses is reproducibility, so there's no way to do that, no. you'd have to know what the files are.

radiant lotus
#

but generally

#

use a resource compiler or something similar to embed files as symbols

#

or

#

just

#

dont