~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.
07e32fcb
—
William Batista 4 years ago
Forbid unsafe code
- impl/src/lib.rs +1 -0
- src/lib.rs +2 -0
- utils/src/lib.rs +2 -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,5 +1,7 @@
|
|
|
1
|
+
#![forbid(unsafe_code)]
|
|
1
2
|
#[cfg(feature = "compression")]
|
|
2
3
|
#[cfg_attr(feature = "compression", doc(hidden))]
|
|
4
|
+
|
|
3
5
|
pub use include_flate::flate;
|
|
4
6
|
|
|
5
7
|
#[allow(unused_imports)]
|
utils/src/lib.rs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
#![forbid(unsafe_code)]
|
|
1
2
|
#[cfg_attr(all(debug_assertions, not(feature = "debug-embed")), allow(unused))]
|
|
3
|
+
|
|
2
4
|
pub struct FileEntry {
|
|
3
5
|
pub rel_path: String,
|
|
4
6
|
pub full_canonical_path: String,
|