~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 (3) hide show
  1. Cargo.toml +1 -1
  2. changelog.md +24 -0
  3. readme.md +2 -2
Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rust-embed"
3
- version = "1.1.1"
3
+ version = "2.0.0"
4
4
  description = "Rust Custom Derive Macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev"
5
5
  readme = "readme.md"
6
6
  documentation = "https://docs.rs/rust-embed"
changelog.md ADDED
@@ -0,0 +1,24 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
+
7
+ Thanks to @Mcat12 for the changelog.
8
+
9
+ ## [2.0.0] - 2018-05-26
10
+ ### Changed
11
+ - Reimplemented the macro for release to use include_bytes for perf sake. Thanks @lukad
12
+
13
+ ## [1.1.1] - 2018-03-19
14
+ ### Changed
15
+ - Converted the rust-embed macro `embed!` into a Rust Custom Derive Macro `#[derive(RustEmbed)]`
16
+
17
+ ## [0.5.0] - 2018-03-16
18
+ ### Changed
19
+ - Converted the rust-embed executable into a macro `embed!` which now loads files at compile time during release and from the fs during dev.
20
+
21
+ ## [0.2.0] - 2017-03-16
22
+ ### Added
23
+ - rust-embed executable which generates rust code to embed resource files into your rust executable
24
+ it creates a file like assets.rs that contains the code for your assets.
readme.md CHANGED
@@ -11,11 +11,11 @@ This is similar to [pony-embed](https://github.com/pyros2097/pony-embed).
11
11
 
12
12
  ```
13
13
  [dependencies]
14
- rust-embed="1.1.1"
14
+ rust-embed="2.0.0"
15
15
  ```
16
16
 
17
17
  ## Documentation
18
- Declare a struct name it Asset or something and add an attribute `folder` to it which has the path to your static folder.
18
+ Declare a struct name it Asset or something and add an attribute `folder` to it which has the path to your static folder.
19
19
  ```rust
20
20
  #![feature(attr_literals)]
21
21