~repos /rust-embed
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.
8ddb02fa
—
Mark Drobnak 4 years ago
Merge pull request #134 from billyb2/master
- impl/src/lib.rs +1 -0
- src/lib.rs +1 -0
- utils/src/lib.rs +1 -0
impl/src/lib.rs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#![recursion_limit = "1024"]
|
|
2
|
+
#![forbid(unsafe_code)]
|
|
2
3
|
#[macro_use]
|
|
3
4
|
extern crate quote;
|
|
4
5
|
extern crate proc_macro;
|
src/lib.rs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#![forbid(unsafe_code)]
|
|
1
2
|
#[cfg(feature = "compression")]
|
|
2
3
|
#[cfg_attr(feature = "compression", doc(hidden))]
|
|
3
4
|
pub use include_flate::flate;
|
utils/src/lib.rs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#![forbid(unsafe_code)]
|
|
1
2
|
#[cfg_attr(all(debug_assertions, not(feature = "debug-embed")), allow(unused))]
|
|
2
3
|
pub struct FileEntry {
|
|
3
4
|
pub rel_path: String,
|