Skip to content

Commit 840b893

Browse files
authored
Merge pull request #481 from rustcoreutils/lp
New util: lp
2 parents 363db81 + 1c5f08b commit 840b893

File tree

8 files changed

+647
-10
lines changed

8 files changed

+647
-10
lines changed

Cargo.lock

Lines changed: 137 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ members = [
2323
"pathnames",
2424
"pax",
2525
"plib",
26+
"print",
2627
"process",
2728
"sccs",
2829
"screen",

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ Because it is a FAQ, the major differences between this project and uutils are:
185185
- [x] ipcs (IPC)
186186
- [x] kill
187187
- [x] logger
188+
- [x] lp
188189
- [x] patch
189190
- [x] ps
190191
- [x] stty
@@ -209,9 +210,6 @@ Because it is a FAQ, the major differences between this project and uutils are:
209210
- [ ] msgfmt (i18n)
210211
- [ ] ngettext (i18n)
211212

212-
### Misc. category
213-
- [ ] lp
214-
215213
## Installation
216214

217215
These are "core" utilities of any operating system. Production packaging in the future will be done on a per-distro basis in a distro-specific way.

lib/utils.tsv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ link tree/link.rs
5353
ln tree/ln.rs
5454
logger users/logger.rs
5555
logname users/logname.rs
56+
lp print/lp.rs
5657
ls tree/ls.rs
5758
m4 m4/
5859
mailx mailx/

print/Cargo.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[package]
2+
name = "posixutils-print"
3+
version = "0.1.0"
4+
authors = ["Jeff Garzik"]
5+
repository.workspace = true
6+
license.workspace = true
7+
edition.workspace = true
8+
rust-version.workspace = true
9+
10+
[dependencies]
11+
plib = { path = "../plib" }
12+
clap.workspace = true
13+
gettext-rs.workspace = true
14+
num-traits = "0.2"
15+
16+
# IPP - blocking client only, no TLS for minimal deps
17+
ipp = { version = "5.3", default-features = false, features = ["client"] }
18+
19+
[lints]
20+
workspace = true
21+
22+
[[bin]]
23+
name = "lp"
24+
path = "./lp.rs"

0 commit comments

Comments
 (0)