From aaa7274b63c748acf9273e0fb4ac05afc5a10499 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 17 Nov 2016 17:43:31 -0500 Subject: [PATCH] Remove unnecessary dependencies of getopts & libc for utilities. --- src/expr/Cargo.toml | 1 - src/expr/expr.rs | 3 --- src/false/Cargo.toml | 4 ---- src/head/Cargo.toml | 1 - src/head/head.rs | 2 -- src/id/Cargo.toml | 3 --- src/logname/Cargo.toml | 1 - src/test/Cargo.toml | 1 - src/true/Cargo.toml | 4 ---- src/uname/Cargo.toml | 3 --- src/uname/uname.rs | 2 -- 11 files changed, 25 deletions(-) diff --git a/src/expr/Cargo.toml b/src/expr/Cargo.toml index 233804b67..37ee12bf6 100644 --- a/src/expr/Cargo.toml +++ b/src/expr/Cargo.toml @@ -8,7 +8,6 @@ name = "uu_expr" path = "expr.rs" [dependencies] -getopts = "*" libc = "*" uucore = { path="../uucore" } diff --git a/src/expr/expr.rs b/src/expr/expr.rs index c78d1263e..56d87d71b 100644 --- a/src/expr/expr.rs +++ b/src/expr/expr.rs @@ -9,9 +9,6 @@ * file that was distributed with this source code. */ -extern crate getopts; -extern crate libc; - #[macro_use] extern crate uucore; diff --git a/src/false/Cargo.toml b/src/false/Cargo.toml index daa2c5363..9b4582065 100644 --- a/src/false/Cargo.toml +++ b/src/false/Cargo.toml @@ -7,10 +7,6 @@ authors = [] name = "uu_false" path = "false.rs" -[dependencies] -getopts = "*" -libc = "*" - [[bin]] name = "false" path = "main.rs" diff --git a/src/head/Cargo.toml b/src/head/Cargo.toml index aaa2874eb..ee9f934dd 100644 --- a/src/head/Cargo.toml +++ b/src/head/Cargo.toml @@ -8,7 +8,6 @@ name = "uu_head" path = "head.rs" [dependencies] -getopts = "*" libc = "*" uucore = { path="../uucore" } diff --git a/src/head/head.rs b/src/head/head.rs index 8b761336a..fa7a7f6f0 100644 --- a/src/head/head.rs +++ b/src/head/head.rs @@ -11,8 +11,6 @@ * Synced with: https://raw.github.com/avsm/src/master/usr.bin/head/head.c */ -extern crate getopts; - #[macro_use] extern crate uucore; diff --git a/src/id/Cargo.toml b/src/id/Cargo.toml index 63eec9112..f11481c6b 100644 --- a/src/id/Cargo.toml +++ b/src/id/Cargo.toml @@ -7,9 +7,6 @@ authors = [] name = "uu_id" path = "id.rs" -[dependencies] -getopts = "*" - [dependencies.uucore] path = "../uucore" default-features = false diff --git a/src/logname/Cargo.toml b/src/logname/Cargo.toml index dfcf0454c..ead9c73ce 100644 --- a/src/logname/Cargo.toml +++ b/src/logname/Cargo.toml @@ -8,7 +8,6 @@ name = "uu_logname" path = "logname.rs" [dependencies] -getopts = "*" libc = "*" uucore = { path="../uucore" } diff --git a/src/test/Cargo.toml b/src/test/Cargo.toml index 900d9d18e..924e201e8 100644 --- a/src/test/Cargo.toml +++ b/src/test/Cargo.toml @@ -8,7 +8,6 @@ name = "uu_test" path = "test.rs" [dependencies] -getopts = "*" libc = "*" uucore = { path="../uucore" } diff --git a/src/true/Cargo.toml b/src/true/Cargo.toml index e6e78793e..4d5be508f 100644 --- a/src/true/Cargo.toml +++ b/src/true/Cargo.toml @@ -7,10 +7,6 @@ authors = [] name = "uu_true" path = "true.rs" -[dependencies] -getopts = "*" -libc = "*" - [[bin]] name = "true" path = "main.rs" diff --git a/src/uname/Cargo.toml b/src/uname/Cargo.toml index de9b1ef3f..498bf0762 100644 --- a/src/uname/Cargo.toml +++ b/src/uname/Cargo.toml @@ -7,9 +7,6 @@ authors = [] name = "uu_uname" path = "uname.rs" -[dependencies] -getopts = "*" - [dependencies.uucore] path = "../uucore" default-features = false diff --git a/src/uname/uname.rs b/src/uname/uname.rs index 5e0b21b38..9fae33259 100644 --- a/src/uname/uname.rs +++ b/src/uname/uname.rs @@ -11,8 +11,6 @@ // last synced with: uname (GNU coreutils) 8.21 -extern crate getopts; - #[macro_use] extern crate uucore; use uucore::utsname::Uname;