~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.lock +35 -1
  2. Cargo.toml +10 -3
  3. src/main.rs +1 -1
Cargo.lock CHANGED
@@ -1,6 +1,6 @@
1
1
  [root]
2
2
  name = "rust-embed"
3
- version = "0.1.0"
3
+ version = "0.2.0"
4
4
  dependencies = [
5
5
  "hyper 0.6.16 (registry+https://github.com/rust-lang/crates.io-index)",
6
6
  ]
@@ -262,3 +262,37 @@ name = "winapi-build"
262
262
  version = "0.1.1"
263
263
  source = "registry+https://github.com/rust-lang/crates.io-index"
264
264
 
265
+ [metadata]
266
+ "checksum advapi32-sys 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "307c92332867e586720c0222ee9d890bbe8431711efed8a1b06bc5b40fc66bd7"
267
+ "checksum bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "32866f4d103c4e438b1db1158aa1b1a80ee078e5d77a59a2f906fd62a577389c"
268
+ "checksum cookie 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)" = "02443c47d5c80f9b4be9b8f51c0bf307d663fe28b18ccabef44d8b0a4b2a967b"
269
+ "checksum gcc 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)" = "7c4709c32c47168f5fdf6fcece04b283931fc071b713435bff40d67b5f0b5d5d"
270
+ "checksum hpack 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3d2da7d3a34cf6406d9d700111b8eafafe9a251de41ae71d8052748259343b58"
271
+ "checksum httparse 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "49bd72a7f04d020d0f22e20a0cd80ac7d745d2023d1f35929497780ea06dbef8"
272
+ "checksum hyper 0.6.16 (registry+https://github.com/rust-lang/crates.io-index)" = "99f86de19a680224688020785c0b62a2dccace29719847b16f1a9b22c312827f"
273
+ "checksum kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b5b5e7edf375e6d26243bde172f1d5ed1446f4a766fc9b7006e1fd27258243f1"
274
+ "checksum language-tags 0.0.7 (registry+https://github.com/rust-lang/crates.io-index)" = "41633f9c0d99840437d1f2073c0a6dadcf1dbd28b87dda956e3d91b65f6e57a7"
275
+ "checksum lazy_static 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)" = "547fd11b0400fbab39f7a6df53c648cfb01b977233015d9e0784d595a5a6c449"
276
+ "checksum libc 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "e32a70cf75e5846d53a673923498228bbec6a8624708a9ea5645f075d6276122"
277
+ "checksum libc 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9fe40c82db71d8e4db6910989256d407abc151586aa10b8bce68bf84108af5ce"
278
+ "checksum libressl-pnacl-sys 2.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "cbc058951ab6a3ef35ca16462d7642c4867e6403520811f28537a4e2f2db3e71"
279
+ "checksum log 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "fbb9a8cc55c114657af9fd2297fad569cb0d126851aa9a132b1e93b5789d67f9"
280
+ "checksum matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "15305656809ce5a4805b1ff2946892810992197ce1270ff79baded852187942e"
281
+ "checksum mime 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "82cb9365a85d5c3dd6f503a5f2323b8110df222b322a127583897eb4e9df84ff"
282
+ "checksum num_cpus 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)" = "7400161da982ec2982b99965a099936f52aac4d4792eb28625b3f5bf8d27aded"
283
+ "checksum openssl 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)" = "816776e562d5e95935ffb09a45442deb846c4767f1c3c3b33ec24a4b8106e11a"
284
+ "checksum openssl-sys 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)" = "74a0b047568fe3d4f35a076d6bd3c49b5ae7da80c4df72956b3a8268020f1aab"
285
+ "checksum pkg-config 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "e22680bde24ca417a3a7fc1036ead9acf0a0af007217c955f61c0eaa903edb2f"
286
+ "checksum pnacl-build-helper 1.4.10 (registry+https://github.com/rust-lang/crates.io-index)" = "61c9231d31aea845007443d62fcbb58bb6949ab9c18081ee1e09920e0cf1118b"
287
+ "checksum rand 0.3.12 (registry+https://github.com/rust-lang/crates.io-index)" = "5eee40bdf3d293e1648490ab47e5471d9ab3e455e6b0bd48e558c454be4a015e"
288
+ "checksum rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)" = "1a48546a64cae47d06885e9bccadb99d0547d877a94c5167fa451ea33a484456"
289
+ "checksum solicit 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "172382bac9424588d7840732b250faeeef88942e37b6e35317dce98cafdd75b2"
290
+ "checksum tempdir 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "0b62933a3f96cd559700662c34f8bab881d9e3540289fb4f368419c7f13a5aa9"
291
+ "checksum time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)" = "8c4aeaa1c95974f5763c3a5ac0db95a19793589bcea5d22e161b5587e3aad029"
292
+ "checksum traitobject 0.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "07eaeb7689bb7fca7ce15628319635758eda769fed481ecfe6686ddef2600616"
293
+ "checksum typeable 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1410f6f91f21d1612654e7cc69193b0334f909dcf2c790c4826254fbb86f8887"
294
+ "checksum unicase 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "90f210c8e5bc9dfffbb268e2c45abd07d853670078d8383fcd7cbaeae2d7e94d"
295
+ "checksum url 0.2.38 (registry+https://github.com/rust-lang/crates.io-index)" = "cbaa8377a162d88e7d15db0cf110c8523453edcbc5bc66d2b6fffccffa34a068"
296
+ "checksum uuid 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)" = "78c590b5bd79ed10aad8fb75f078a59d8db445af6c743e55c4a53227fc01c13f"
297
+ "checksum winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "dc3583688b861fcd83c2823d37cf2cd2446c233dd7ba3f97884d1a7302817537"
298
+ "checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
Cargo.toml CHANGED
@@ -1,7 +1,14 @@
1
1
  [package]
2
2
  name = "rust-embed"
3
- version = "0.1.0"
3
+ version = "0.2.0"
4
+ description = "Generates rust code to embed resource files into your rust executable"
5
+ readme = "README.md"
6
+ documentation = "https://docs.rs/rust-embed"
7
+ repository = "https://github.com/pyros2097/rust-embed"
8
+ license = "MIT"
9
+ keywords = ["http", "hyper", "rocket", "static", "web", "server"]
10
+ categories = ["web-programming::http-server"]
4
- authors = ["Peter John <pyros2097@gmail.com>"]
11
+ authors = ["pyros2097 <pyros2097@gmail.com>"]
5
12
 
6
- [dependencies]
13
+ [dev-dependencies]
7
14
  hyper = "*"
src/main.rs CHANGED
@@ -57,7 +57,7 @@ fn recursive_read(list: &mut Vec<u8>, pp: &mut Vec<u8>, buffer: &mut Vec<u8>, fi
57
57
 
58
58
  fn print_usage() {
59
59
  print!("
60
- rust-embed v0.1.0
60
+ rust-embed v0.2.0
61
61
  Generates rust code to embed resource files into your library or executable
62
62
 
63
63
  Usage: