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


8f1216b8 pyros2097

7 years ago
Update readme.md
Files changed (1) hide show
  1. readme.md +1 -1
readme.md CHANGED
@@ -23,7 +23,7 @@ You need to add the custom derive macro RustEmbed to your struct with an attribu
23
23
  #[folder = "examples/public/"]
24
24
  struct Asset;
25
25
  ```
26
- This macro add a single static method `get` to your type. This method allows you to get your assets from the fs during dev and from the binary during release. It takes the file path as string and returns an an optional vector of u8.
26
+ This macro adds a single static method `get` to your type. This method allows you to get your assets from the fs during dev and from the binary during release. It takes the file path as string and returns an optional vector of u8.
27
27
  ```rust
28
28
  pub fn get(file_path: &str) -> Option<Vec<u8>>
29
29
  ```