Fix imports for when feature `memfile` is disabled.

Fortune for collect's current commit: Blessing − 吉
safe-memfd
Avril 3 years ago
parent ed957bcec8
commit b3dbb30deb
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -9,7 +9,7 @@ edition = "2021"
default = ["jemalloc", "memfile", "logging", "tracing/release_max_level_warn"]
# TODO: mmap, memfd_create() ver
memfile = ["bitflags", "lazy_static"]
memfile = ["bitflags", "lazy_static", "stackalloc"]
# bytes: use `bytes` crate for collecting instead of `std::vec`
@ -52,5 +52,5 @@ recolored = { version = "1.9.3", optional = true }
memchr = "2.4.1"
lazy_format = "1.10.0"
bitflags = {version = "1.3.2", optional = true }
stackalloc = "1.1.1"
stackalloc = {version = "1.1.1", optional = true }
lazy_static = { version = "1.4.0", optional = true }

@ -3,7 +3,9 @@
#[cfg(feature="logging")]
#[macro_use] extern crate tracing;
#[cfg(feature="memfile")]
#[macro_use] extern crate lazy_static;
#[cfg(feature="memfile")]
#[macro_use] extern crate stackalloc;
/// Run this statement only if `tracing` is enabled

Loading…
Cancel
Save