~repos /rust-embed

#rust#proc-macro#http

git clone https://pyrossh.dev/repos/rust-embed.git
Discussions: https://groups.google.com/g/rust-embed-devs

rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.


Files changed (4) hide show
  1. .travis.yml +1 -0
  2. appveyor.yml +1 -0
  3. changelog.md +4 -0
  4. readme.md +6 -0
.travis.yml CHANGED
@@ -16,6 +16,7 @@ script:
16
16
  - cargo test --test lib
17
17
  - cargo test --test lib --features "debug-embed"
18
18
  - cargo test --test lib --release
19
+ - cargo test --test lib --features "compression" --release
19
20
  - cargo test --test interpolated_path --features "interpolate-folder-path"
20
21
  - cargo test --test interpolated_path --features "interpolate-folder-path" --release
21
22
  - cargo build --example basic
appveyor.yml CHANGED
@@ -133,6 +133,7 @@ test_script:
133
133
  - cargo test --test lib
134
134
  - cargo test --test lib --features "debug-embed"
135
135
  - cargo test --test lib --release
136
+ - cargo test --test lib --features "compression" --release
136
137
  - cargo test --test interpolated_path --features "interpolate-folder-path"
137
138
  - cargo test --test interpolated_path --features "interpolate-folder-path" --release
138
139
  - cargo build --example basic
changelog.md CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  Thanks to [Mcat12](https://github.com/Mcat12) for the changelog.
9
9
 
10
+ ## Unreleased
11
+ ### Added
12
+ - `compression` feature for compressing embedded files
13
+
10
14
  ## [5.2.0] - 2019-12-05
11
15
 
12
16
  ## Changed
readme.md CHANGED
@@ -90,6 +90,10 @@ struct Asset;
90
90
 
91
91
  This will pull the `foo` directory relative to your `Cargo.toml` file.
92
92
 
93
+ ### `compression`
94
+
95
+ Compress each file when embedding into the binary. Compression is done via [`include-flate`].
96
+
93
97
  ## Usage
94
98
 
95
99
  ```rust
@@ -136,3 +140,5 @@ release: `cargo test --test lib --release`
136
140
 
137
141
  Go Rusketeers!
138
142
  The power is yours!
143
+
144
+ [`include-flate`]: https://crates.io/crates/include-flate