1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382
|
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
Thanks to [Mark Drobnak](https://github.com/AzureMarker) for the changelog.
## [8.7.0] - 2025-04-10
- add deterministic timestamps flag for deterministic builds [#259](https://github.com/pyrossh/rust-embed/pull/259). Thanks to [daywalker90](https://github.com/daywalker90)
## [8.6.0] - 2025-02-25
- Update include-flate to 0.3 [#246](https://github.com/pyrossh/rust-embed/pull/246). Thanks to [krant](https://github.com/krant)
- refactor: remove redundant reference and closure [#250](https://github.com/pyrossh/rust-embed/pull/250). Thanks to [hamirmahal](https://github.com/hamirmahal)
- refactor: replace map().unwrap_or_else(). [#250](https://github.com/pyrossh/rust-embed/pull/255). Thanks to [hamirmahal](https://github.com/hamirmahal)
- Compatible with Axum 0.7.9 [#253](https://github.com/pyrossh/rust-embed/pull/253). Thanks to [wkmyws](https://github.com/wkmyws)
- Add allow_missing option to derive macro [#256](https://github.com/pyrossh/rust-embed/pull/256). Thanks to [lirannl](https://github.com/lirannl)
## [8.5.0] - 2024-07-09
- Allow users to specify a custom path to the rust_embed crate in generated code[#232](https://github.com/pyrossh/rust-embed/pull/232). Thanks to [Wulf](https://github.com/Wulf)
- Increase minimum rust-version to v1.7.0.0
## [8.4.0] - 2024-05-11
- Re-export RustEmbed as Embed [#245](https://github.com/pyrossh/rust-embed/pull/245/files). Thanks to [pyrossh](https://github.com/pyrossh)
- Do not build glob matchers repeatedly when include-exclude feature is enabled [#244](https://github.com/pyrossh/rust-embed/pull/244/files). Thanks to [osiewicz](https://github.com/osiewicz)
- Add `metadata_only` attribute [#241](https://github.com/pyrossh/rust-embed/pull/241/files). Thanks to [ddfisher](https://github.com/ddfisher)
- Replace `expect` with a safer alternative that returns `None` instead [#240](https://github.com/pyrossh/rust-embed/pull/240/files). Thanks to [costinsin](https://github.com/costinsin)
- Eliminate unnecessary `to_path` call [#239](https://github.com/pyrossh/rust-embed/pull/239/files). Thanks to [smoelius](https://github.com/smoelius)
## [8.3.0] - 2024-02-26
- Fix symbolic links in debug builds [#235](https://github.com/pyrossh/rust-embed/pull/235/files). Thanks to [Buckram123](https://github.com/Buckram123)
## [8.2.0] - 2023-12-29
- Fix naming collisions in macros [#230](https://github.com/pyrossh/rust-embed/pull/230/files). Thanks to [hwittenborn](https://github.com/hwittenborn)
## [8.1.0] - 2023-12-08
- Add created to file metadata. [#225](https://github.com/pyrossh/rust-embed/pull/225/files). Thanks to [ngalaiko](https://github.com/ngalaiko)
## [8.0.0] - 2023-08-23
- Store file contents statically and use binary search for lookup. [#217](https://github.com/pyrossh/rust-embed/pull/217/files). Thanks to [osiewicz](https://github.com/osiewicz)
## [6.8.1] - 2023-06-30
- Fix failing compilation under compression feature [#182](https://github.com/pyrossh/rust-embed/issues/182). Thanks to [osiewicz](https://github.com/osiewicz)
## [6.8.0] - 2023-06-30
- Update `include-flate` to v0.2 [#182](https://github.com/pyrossh/rust-embed/issues/182)
## [6.7.0] - 2023-06-09
- Update `syn` to v2.0 [#211](https://github.com/pyrossh/rust-embed/issues/211)
## [6.6.1] - 2023-03-25
- Fix mime-guess feature not working properly [#209](https://github.com/pyrossh/rust-embed/issues/209)
## [6.6.0] - 2023-03-05
- sort_by_file_name() requires walkdir v2.3.2 [#206](https://github.com/pyrossh/rust-embed/issues/206)
- Add `mime-guess` feature to statically store mimetype [#192](https://github.com/pyrossh/rust-embed/issues/192)
## [6.4.2] - 2022-10-20
- Fail the proc macro if include/exclude are used without the feature [#187](https://github.com/pyrossh/rust-embed/issues/187)
## [6.4.1] - 2022-09-13
- Update sha2 dependency version in utils crate [#186](https://github.com/pyrossh/rust-embed/issues/186)
## [6.4.0] - 2022-04-15
- Order files by filename [#171](https://github.com/pyros2097/rust-embed/issues/171). Thanks to [apognu](https://github.com/apognu)
## [6.3.0] - 2021-11-28
- Fixed a security issue in debug mode [#159](https://github.com/pyros2097/rust-embed/issues/159). Thanks to [5225225](https://github.com/5225225)
## [6.2.0] - 2021-09-01
- Fixed `include-exclude` feature when using cargo v2 resolver
## [6.1.0] - 2021-08-31
- Added `include-exclude` feature by [mbme](https://github.com/mbme)
## [6.0.1] - 2021-08-21
- Added doc comments to macro generated functions
## [6.0.0] - 2021-08-01
Idea came about from [Cody Casterline](https://github.com/NfNitLoop)
- Breaking change the `Asset::get()` api has changed and now returns an `EmbeddedFile` which contains a `data` field which is the bytes of the file and
a `metadata` field which has theses 2 properties associated to the file `hash` and `last_modified`;
## [5.9.0] - 2021-01-18
### Added
- Added path prefix attribute
## [5.8.0] - 2021-01-06
### Fixed
- Fixed compiling with latest version of syn
## [5.7.0] - 2020-12-08
### Fixed
- Fix feature flag typo
## [5.6.0] - 2020-07-19
### Fixed
- Fixed windows path error in release mode
### Changed
- Using github actions for CI now
## [5.5.1] - 2020-03-19
### Fixed
- Fixed warnings in latest nightly
## [5.5.0] - 2020-02-26
### Fixed
- Fixed the `folder` directory being relative to the current directory.
It is now relative to `Cargo.toml`.
## [5.4.0] - 2020-02-24
### Changed
- using rust-2018 edition now
- code cleanup
- updated examples and crates
## [5.3.0] - 2020-02-15
### Added
- `compression` feature for compressing embedded files
## [5.2.0] - 2019-12-05
## Changed
- updated syn and quote crate to 1.x
## [5.1.0] - 2019-07-09
## Fixed
- error when debug code tries to import the utils crate
## [5.0.1] - 2019-07-07
## Changed
- derive is allowed only on unit structs now
## [5.0.0] - 2019-07-05
## Added
- proper error message stating only unit structs are supported
## Fixed
- windows latest build
## [4.5.0] - 2019-06-29
## Added
- allow rust embed derive to take env variables in the folder path
## [4.4.0] - 2019-05-11
### Fixed
- a panic when struct has doc comments
### Added
- a warp example
## [4.3.0] - 2019-01-10
### Fixed
- debug_embed feature was not working at all
### Added
- a test run for debug_embed feature
## [4.2.0] - 2018-12-02
### Changed
- return `Cow<'static, [u8]>` to preserve static lifetime
## [4.1.0] - 2018-10-24
### Added
- `iter()` method to list files
## [4.0.0] - 2018-10-11
### Changed
- avoid vector allocation by returning `impl AsRef<[u8]>`
## [3.0.2] - 2018-09-05
### Added
- appveyor for testing on windows
### Fixed
- handle paths in windows correctly
## [3.0.1] - 2018-07-24
### Added
- panic if the folder cannot be found
## [3.0.0] - 2018-06-01
### Changed
- The derive attribute style so we don't need `attr_literals` and it can be used in stable rust now. Thanks to [Mcat12](https://github.com/Mcat12).
```rust
#[folder("assets/")]
```
to
```rust
#[folder = "assets/"]
```
### Removed
- log dependecy as we are not using it anymore
## [2.0.0] - 2018-05-26
### Changed
- Reimplemented the macro for release to use include_bytes for perf sake. Thanks to [lukad](https://github.com/lukad).
## [1.1.1] - 2018-03-19
### Changed
- Fixed usage error message
## [1.1.0] - 2018-03-19
### Added
- Release mode for custom derive
### Changed
- Fixed tests in travis
## [1.0.0] - 2018-03-18
### Changed
- Converted the rust-embed macro `embed!` into a Rust Custom Derive Macro `#[derive(RustEmbed)]` which implements get on the struct
```rust
let asset = embed!("examples/public/")
```
to
```rust
#[derive(RustEmbed)]
#[folder = "examples/public/"]
struct Asset;
```
## [0.5.2] - 2018-03-16
### Added
- rouille example
## [0.5.1] - 2018-03-16
### Removed
- the plugin attribute from crate
## [0.5.0] - 2018-03-16
### Added
- rocket example
### Changed
- Converted the rust-embed executable into a macro `embed!` which now loads files at compile time during release and from the fs during dev.
## [0.4.0] - 2017-03-2
### Changed
- `generate_assets` to public again
## [0.3.5] - 2017-03-2
### Added
- rust-embed prefix to all logs
## [0.3.4] - 2017-03-2
### Changed
- the lib to be plugin again
## [0.3.3] - 2017-03-2
### Changed
- the lib to be proc-macro from plugin
## [0.3.2] - 2017-03-2
### Changed
- lib name from `rust-embed` to `rust_embed`
## [0.3.1] - 2017-03-2
### Removed
- hyper example
## [0.3.0] - 2017-02-26
### Added
- rust-embed executable which generates rust code to embed resource files into your rust executable
it creates a file like assets.rs that contains the code for your assets.
## [0.2.0] - 2017-03-16
### Added
- rust-embed executable which generates rust code to embed resource files into your rust executable
it creates a file like assets.rs that contains the code for your assets.
|