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


c25b1f7b pyrossh

1 year ago
fix tests
Files changed (2) hide show
  1. Cargo.toml +1 -1
  2. tests/mime_guess.rs +1 -1
Cargo.toml CHANGED
@@ -69,7 +69,7 @@ rust-embed-utils = { version = "8.4.0", path = "utils"}
69
69
 
70
70
  include-flate = { version = "0.3", optional = true }
71
71
  actix-web = { version = "4", optional = true }
72
- mime_guess = { version = "2", optional = true }
72
+ mime_guess = { version = "2.0.5", optional = true }
73
73
  hex = { version = "0.4.3", optional = true }
74
74
  tokio = { version = "1.0", optional = true, features = ["macros", "rt-multi-thread"] }
75
75
  warp = { version = "0.3", default-features = false, optional = true }
tests/mime_guess.rs CHANGED
@@ -19,7 +19,7 @@ fn css_mime_is_correct() {
19
19
  #[test]
20
20
  fn js_mime_is_correct() {
21
21
  let js_file: EmbeddedFile = Asset::get("main.js").expect("main.js exists");
22
- assert_eq!(js_file.metadata.mimetype(), "application/javascript");
22
+ assert_eq!(js_file.metadata.mimetype(), "text/javascript");
23
23
  }
24
24
 
25
25
  #[test]