~repos /rust-embed

#rust#proc-macro#http

git clone https://pyrossh.dev/repos/rust-embed.git

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


aff2630c Peter

6 years ago
Merge pull request #73 from pyros2097/v5.0.1
Files changed (5) hide show
  1. Cargo.toml +2 -2
  2. changelog.md +4 -2
  3. impl/Cargo.toml +1 -1
  4. impl/src/lib.rs +2 -2
  5. readme.md +1 -1
Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rust-embed"
3
- version = "5.0.0"
3
+ version = "5.0.1"
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"
@@ -12,7 +12,7 @@ authors = ["pyros2097 <pyros2097@gmail.com>"]
12
12
 
13
13
  [dependencies]
14
14
  walkdir = "2.2.7"
15
- rust-embed-impl = { version = "5.0.0", path = "impl"}
15
+ rust-embed-impl = { version = "5.0.1", path = "impl"}
16
16
  rust-embed-utils = { version = "5.0.0", path = "utils"}
17
17
 
18
18
  actix-web = { version = "0.7", optional = true }
changelog.md CHANGED
@@ -6,13 +6,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  Thanks to [Mcat12](https://github.com/Mcat12) for the changelog.
8
8
 
9
+ ## [5.0.1] - 2019-07-07
10
+ ## Changed
11
+ - derive is allowed only on unit structs now
12
+
9
13
  ## [5.0.0] - 2019-07-05
10
14
  ## Added
11
15
  - proper error message stating only unit structs are supported
12
16
  ## Fixed
13
17
  - windows latest build
14
- ## Changed
15
- - derive on tuple structs is removed
16
18
 
17
19
  ## [4.5.0] - 2019-06-29
18
20
  ## Added
impl/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rust-embed-impl"
3
- version = "5.0.0"
3
+ version = "5.0.1"
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"
impl/src/lib.rs CHANGED
@@ -108,8 +108,8 @@ fn impl_rust_embed(ast: &syn::DeriveInput) -> Tokens {
108
108
  match ast.body {
109
109
  Body::Enum(_) => panic!("RustEmbed cannot be derived for enums"),
110
110
  Body::Struct(ref data) => match data {
111
+ &VariantData::Unit => {},
111
- &VariantData::Struct(_) => panic!("RustEmbed can only be derived for unit structs"),
112
+ _ => panic!("RustEmbed can only be derived for unit structs")
112
- _ => {}
113
113
  },
114
114
  };
115
115
 
readme.md CHANGED
@@ -13,7 +13,7 @@ You can use this to embed your css, js and images into a single executable which
13
13
 
14
14
  ```toml
15
15
  [dependencies]
16
- rust-embed="5.0.0"
16
+ rust-embed="5.0.1"
17
17
  ```
18
18
 
19
19
  ## Documentation