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


ab55a843 pyrossh

7 months ago
update link to repo
Files changed (3) hide show
  1. Cargo.toml +19 -8
  2. impl/Cargo.toml +8 -3
  3. utils/Cargo.toml +1 -1
Cargo.toml CHANGED
@@ -4,7 +4,7 @@ version = "8.7.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"
7
- repository = "https://github.com/pyros2097/rust-embed"
7
+ repository = "https://git.sr.ht/~pyrossh/rust-embed"
8
8
  license = "MIT"
9
9
  keywords = ["http", "rocket", "static", "web", "server"]
10
10
  categories = ["web-programming", "filesystem"]
@@ -64,19 +64,27 @@ required-features = ["mime-guess"]
64
64
 
65
65
  [dependencies]
66
66
  walkdir = "2.3.2"
67
- rust-embed-impl = { version = "8.7.0", path = "impl"}
67
+ rust-embed-impl = { version = "8.7.0", path = "impl" }
68
- rust-embed-utils = { version = "8.7.0", path = "utils"}
68
+ rust-embed-utils = { version = "8.7.0", path = "utils" }
69
69
 
70
70
  include-flate = { version = "0.3", optional = true }
71
71
  actix-web = { version = "4", optional = true }
72
72
  mime_guess = { version = "2.0.5", optional = true }
73
73
  hex = { version = "0.4.3", optional = true }
74
- tokio = { version = "1.0", optional = true, features = ["macros", "rt-multi-thread"] }
74
+ tokio = { version = "1.0", optional = true, features = [
75
+ "macros",
76
+ "rt-multi-thread",
77
+ ] }
75
78
  warp = { version = "0.3", default-features = false, optional = true }
76
79
  rocket = { version = "0.5.0-rc.2", default-features = false, optional = true }
77
- axum = { version = "0.8", default-features = false, features = ["http1", "tokio"], optional = true }
80
+ axum = { version = "0.8", default-features = false, features = [
81
+ "http1",
82
+ "tokio",
83
+ ], optional = true }
78
- poem = { version = "1.3.30", default-features = false, features = ["server"], optional = true }
84
+ poem = { version = "1.3.30", default-features = false, features = [
85
+ "server",
86
+ ], optional = true }
79
- salvo = { version = "0.16", default-features = false, optional = true }
87
+ salvo = { version = "0.16", default-features = false, optional = true }
80
88
 
81
89
  [dev-dependencies]
82
90
  sha2 = "0.10"
@@ -86,7 +94,10 @@ debug-embed = ["rust-embed-impl/debug-embed", "rust-embed-utils/debug-embed"]
86
94
  interpolate-folder-path = ["rust-embed-impl/interpolate-folder-path"]
87
95
  compression = ["rust-embed-impl/compression", "include-flate"]
88
96
  mime-guess = ["rust-embed-impl/mime-guess", "rust-embed-utils/mime-guess"]
97
+ include-exclude = [
98
+ "rust-embed-impl/include-exclude",
89
- include-exclude = ["rust-embed-impl/include-exclude", "rust-embed-utils/include-exclude"]
99
+ "rust-embed-utils/include-exclude",
100
+ ]
90
101
  actix = ["actix-web", "mime_guess"]
91
102
  warp-ex = ["warp", "tokio", "mime_guess"]
92
103
  axum-ex = ["axum", "tokio", "mime_guess"]
impl/Cargo.toml CHANGED
@@ -4,7 +4,7 @@ version = "8.7.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"
7
- repository = "https://github.com/pyros2097/rust-embed"
7
+ repository = "https://git.sr.ht/~pyrossh/rust-embed"
8
8
  license = "MIT"
9
9
  keywords = ["http", "rocket", "static", "web", "server"]
10
10
  categories = ["web-programming::http-server"]
@@ -15,9 +15,14 @@ edition = "2018"
15
15
  proc-macro = true
16
16
 
17
17
  [dependencies]
18
- rust-embed-utils = { version = "8.7.0", path = "../utils"}
18
+ rust-embed-utils = { version = "8.7.0", path = "../utils" }
19
19
 
20
- syn = { version = "2", default-features = false, features = ["derive", "parsing", "proc-macro", "printing"] }
20
+ syn = { version = "2", default-features = false, features = [
21
+ "derive",
22
+ "parsing",
23
+ "proc-macro",
24
+ "printing",
25
+ ] }
21
26
  quote = "1"
22
27
  proc-macro2 = "1"
23
28
  walkdir = "2.3.1"
utils/Cargo.toml CHANGED
@@ -4,7 +4,7 @@ version = "8.7.0"
4
4
  description = "Utilities for rust-embed"
5
5
  readme = "readme.md"
6
6
  documentation = "https://docs.rs/rust-embed"
7
- repository = "https://github.com/pyros2097/rust-embed"
7
+ repository = "https://git.sr.ht/~pyrossh/rust-embed"
8
8
  license = "MIT"
9
9
  keywords = ["http", "rocket", "static", "web", "server"]
10
10
  categories = ["web-programming::http-server"]