mirror of
https://github.com/uutils/coreutils
synced 2024-12-12 22:32:53 +00:00
base32: add entries
This commit is contained in:
parent
5c97e652a0
commit
7c5416799e
5 changed files with 29 additions and 1 deletions
|
@ -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" }
|
||||
|
|
2
Makefile
2
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 \
|
||||
|
|
|
@ -149,7 +149,6 @@ To do
|
|||
|
||||
- chcon
|
||||
- runcon
|
||||
- base32
|
||||
- md5sum
|
||||
- sha1sum
|
||||
- sha224sum
|
||||
|
|
20
src/base32/Cargo.toml
Normal file
20
src/base32/Cargo.toml
Normal file
|
@ -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"
|
5
src/base32/main.rs
Normal file
5
src/base32/main.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
extern crate uu_base32;
|
||||
|
||||
fn main() {
|
||||
std::process::exit(uu_base32::uumain(std::env::args().collect()));
|
||||
}
|
Loading…
Reference in a new issue