~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.


abf8c849 AzureMarker

4 years ago
Move sha2 into dev-dependencies of rust-embed
Files changed (2) hide show
  1. Cargo.toml +3 -1
  2. src/lib.rs +0 -3
Cargo.toml CHANGED
@@ -32,7 +32,6 @@ path = "tests/interpolated_path.rs"
32
32
  required-features = ["interpolate-folder-path"]
33
33
 
34
34
  [dependencies]
35
- sha2 = "0.9"
36
35
  walkdir = "2.3.1"
37
36
  rust-embed-impl = { version = "5.9.0", path = "impl"}
38
37
  rust-embed-utils = { version = "5.1.0", path = "utils"}
@@ -44,6 +43,9 @@ tokio = { version = "0.2", optional = true, features = ["macros"] }
44
43
  warp = { version = "0.2", default-features = false, optional = true }
45
44
  rocket = { version = "0.4.5", default-features = false, optional = true }
46
45
 
46
+ [dev-dependencies]
47
+ sha2 = "0.9"
48
+
47
49
  [features]
48
50
  debug-embed = ["rust-embed-impl/debug-embed", "rust-embed-utils/debug-embed"]
49
51
  interpolate-folder-path = ["rust-embed-impl/interpolate-folder-path"]
src/lib.rs CHANGED
@@ -3,9 +3,6 @@
3
3
  #[cfg_attr(feature = "compression", doc(hidden))]
4
4
  pub use include_flate::flate;
5
5
 
6
- #[doc(hidden)]
7
- pub use sha2;
8
-
9
6
  #[allow(unused_imports)]
10
7
  #[macro_use]
11
8
  extern crate rust_embed_impl;