diff --git a/Cargo.toml b/Cargo.toml index c67505a6b..c88f9c23e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,6 +36,7 @@ unix = [ "users", ] generic = [ + "base32", "base64", "basename", "cat", @@ -102,6 +103,7 @@ default = ["generic", "unix"] [dependencies] uucore = { path="src/uucore" } arch = { optional=true, path="src/arch" } +base32 = { optional=true, path="src/base32" } base64 = { optional=true, path="src/base64" } basename = { optional=true, path="src/basename" } cat = { optional=true, path="src/cat" } diff --git a/Makefile b/Makefile index 2283ccb96..d25342594 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,7 @@ BUSYBOX_SRC:=$(BUSYBOX_ROOT)/busybox-$(BUSYBOX_VER)/ # Possible programs PROGS := \ + base32 \ base64 \ basename \ cat \ @@ -137,6 +138,7 @@ UTILS ?= $(PROGS) # Programs with usable tests TEST_PROGS := \ + base32 \ base64 \ basename \ cat \ diff --git a/README.md b/README.md index 82f85f746..0ba042f1f 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,6 @@ To do - chcon - runcon -- base32 - md5sum - sha1sum - sha224sum diff --git a/src/base32/Cargo.toml b/src/base32/Cargo.toml new file mode 100644 index 000000000..7d0dd2171 --- /dev/null +++ b/src/base32/Cargo.toml @@ -0,0 +1,20 @@ +[package] +name = "base32" +version = "0.0.1" +authors = [] + +[lib] +name = "uu_base32" +path = "base32.rs" + +[dependencies] +getopts = "*" +uucore = { path="../uucore" } + +[dependencies.clippy] +version = "*" +optional = true + +[[bin]] +name = "base32" +path = "main.rs" diff --git a/src/base32/main.rs b/src/base32/main.rs new file mode 100644 index 000000000..75bdf4530 --- /dev/null +++ b/src/base32/main.rs @@ -0,0 +1,5 @@ +extern crate uu_base32; + +fn main() { + std::process::exit(uu_base32::uumain(std::env::args().collect())); +}