Browse Source

Trim deps a bit more

Alessandro Decina 4 years ago
parent
commit
873691d050
2 changed files with 4 additions and 5 deletions
  1. 2 2
      aya/Cargo.toml
  2. 2 3
      aya/src/sys/netlink.rs

+ 2 - 2
aya/Cargo.toml

@@ -5,9 +5,9 @@ authors = ["Alessandro Decina <[email protected]>"]
 edition = "2018"
 
 [dependencies]
-libc = { version = "0.2", features = ["extra_traits"] }
+libc = { version = "0.2" }
 thiserror = "1"
-object = "0.23"
+object = { version = "0.23", default-features = false, features = ["std", "read_core", "elf"] }
 bytes = "1"
 lazy_static = "1"
 parking_lot = { version = "0.11.1", features = ["send_guard"] }

+ 2 - 3
aya/src/sys/netlink.rs

@@ -209,10 +209,9 @@ impl NetlinkSocket {
     }
 }
 
-#[derive(Debug)]
 struct NetlinkMessage {
     header: nlmsghdr,
-    data: Vec<u8>,
+    _data: Vec<u8>,
     error: Option<nlmsgerr>,
 }
 
@@ -246,7 +245,7 @@ impl NetlinkMessage {
 
         Ok(NetlinkMessage {
             header,
-            data,
+            _data: data,
             error,
         })
     }