/ let-engine / examples / asset-system / example-resource-config.toml
example-resource-config.toml
 1  # example config.toml located in the assets folder when the assets-system feature is enabled.
 2  
 3  # biggest size in bytes before splitting the resources into the next file
 4  max_size = 30_000_000
 5  
 6  # the compression used for lowering file sizes for the cost of loading times.
 7  # 
 8  #
 9  # the options are:
10  # deflate - balanzed speed and size / known for zip and gzip
11  # bwt - slower but more effectively compressed / known for bzip2
12  # zstd - very fast decompression
13  # lzma - high compression but slow
14  # lz4 - very fast but low compression ratio
15  #
16  # leaving this line out removes compression.
17  compression = "zstd"
18  
19  # from fastest with least compression to slowest with most compression.
20  # any numbest outside those bounds automatically get clamped to their highest or lowest level.
21  # deflate - 0 - 9
22  # bwt - 0 - 9
23  # zstd - 1 - 22, giving 0 is the same as giving 3.
24  # lzma - 0 - 9
25  # lz4 - 0 - 16
26  compression_level = 10
27  
28  # file names of the resource files
29  # %g - group
30  # %i - index
31  naming = "%gs%i"
32  
33  # Excludes specific files or directories from being packed
34  exclude = []
35  
36  # The path relative where the binary gets compiled to.
37  output = "."
38  
39  # groups and paths to folders where those groups get defined
40  [groups]
41  texture = "textures"
42  sound = "sounds"
43  font = "fonts"
44  material = "materials"
45  model = "models"