summary history branches tags files
commit:2008dca77361a56ec362dccd748663dc1f7f4663
author:Trevor Bentley
committer:GitHub
date:Fri Jul 12 17:20:05 2019 +0000
parents:d7189cf2dd5bae4267add843fc0eb13812079ca6, 4376f89b55df2615f34cbf4b2849c8c16b4746a1
Merge pull request #13 from mrmekon/reduce_deps

Reduce deps
diff --git a/Cargo.toml b/Cargo.toml
line changes: +5/-4
index 4bb396a..aaddec8
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,19 +17,20 @@ dummy = []
 
 [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"
 
 [target."cfg(target_os = \"macos\")".dependencies]
-objc-foundation = "0.1.1"
+objc-foundation = "0.1"
 objc_id = "0.1"
 
 [target."cfg(target_os = \"macos\")".dependencies.objc]

diff --git a/src/lib.rs b/src/lib.rs
line changes: +1/-1
index 73e1d9e..cfc71f6
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -280,7 +280,7 @@ impl Error for FruitError {
     fn description(&self) -> &str {
         "Hmm"
     }
-    fn cause(&self) -> Option<&Error> {
+    fn cause(&self) -> Option<&dyn Error> {
         None
     }
 }

diff --git a/src/osx.rs b/src/osx.rs
line changes: +1/-1
index efe224f..b1745c3
--- a/src/osx.rs
+++ b/src/osx.rs
@@ -119,7 +119,7 @@ pub struct FruitApp {
 }
 
 /// 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
 ///