remove unneeded logging features (drops 30 dependencies)
[dependencies]
time = "0.1"
-log = {version = "0.4", optional = true }
-dirs = "1.0.4"
+log = {version = "0.4", optional = true, default-features = false, features = ["std"] }
+dirs = "^2.0"
[dependencies.log4rs]
version = "0.8"
optional = true
-features = ["rolling_file_appender"]
+default-features = false
+features = ["console_appender","rolling_file_appender", "compound_policy", "fixed_window_roller", "size_trigger"]
[dev-dependencies]
log = "0.4"
fn description(&self) -> &str {
"Hmm"
}
- fn cause(&self) -> Option<&Error> {
+ fn cause(&self) -> Option<&dyn Error> {
None
}
}
}
/// A boxed Fn type for receiving Rust callbacks from ObjC events
-pub type FruitObjcCallback = Box<Fn(*mut Object)>;
+pub type FruitObjcCallback = Box<dyn Fn(*mut Object)>;
/// Key into the ObjC callback hash map
///