mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-03 06:27:45 +00:00
Fix deprecation warnings for tr.
I switched over to the bit-vec/bit-set cargos.
This commit is contained in:
parent
8f6d13df5f
commit
49d9de17fe
3 changed files with 7 additions and 2 deletions
2
deps/Cargo.toml
vendored
2
deps/Cargo.toml
vendored
|
@ -8,6 +8,8 @@ name = "null"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libc = "0.1.8"
|
libc = "0.1.8"
|
||||||
getopts = "0.2.11"
|
getopts = "0.2.11"
|
||||||
|
bit-vec = "0.3.0"
|
||||||
|
bit-set = "0.2.0"
|
||||||
num_cpus = "*"
|
num_cpus = "*"
|
||||||
rand = "0.3.8"
|
rand = "0.3.8"
|
||||||
regex = "0.1.38"
|
regex = "0.1.38"
|
||||||
|
|
1
src/tr/deps.mk
Normal file
1
src/tr/deps.mk
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DEPLIBS += bit-vec bit-set
|
|
@ -1,5 +1,5 @@
|
||||||
#![crate_name = "tr"]
|
#![crate_name = "tr"]
|
||||||
#![feature(io)]
|
#![feature(io, vecmap)]
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of the uutils coreutils package.
|
* This file is part of the uutils coreutils package.
|
||||||
|
@ -12,10 +12,12 @@
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
extern crate bit_set;
|
||||||
extern crate getopts;
|
extern crate getopts;
|
||||||
|
|
||||||
|
use bit_set::BitSet;
|
||||||
use getopts::Options;
|
use getopts::Options;
|
||||||
use std::collections::{BitSet, VecMap};
|
use std::collections::VecMap;
|
||||||
use std::io::{stdin, stdout, BufReader, Read, Write};
|
use std::io::{stdin, stdout, BufReader, Read, Write};
|
||||||
|
|
||||||
use expand::ExpandSet;
|
use expand::ExpandSet;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue