-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
47 lines (42 loc) · 1.52 KB
/
Cargo.toml
File metadata and controls
47 lines (42 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[package]
name = "batdoc"
version = "1.3.1"
edition = "2021"
description = "cat(1) for doc, docx, xls, xlsx, pptx, and pdf -- renders to markdown with bat"
license = "MIT"
homepage = "https://github.com/daemonp/batdoc"
repository = "https://github.com/daemonp/batdoc"
readme = "README.md"
keywords = ["doc", "docx", "xlsx", "pptx", "pdf"]
categories = ["command-line-utilities"]
[[bin]]
name = "batdoc"
path = "src/main.rs"
[dependencies]
base64 = "0.22"
bat = { version = "0.26.1", default-features = false, features = ["regex-fancy", "paging"] }
cfb = "0.13"
encoding_rs = "0.8"
is-terminal = "0.4"
quick-xml = "0.37"
pdf-extract = "0.10"
thiserror = "2"
zip = { version = "2", default-features = false, features = ["deflate"] }
[build-dependencies]
man = "0.3"
[profile.release]
strip = true
lto = "thin"
[package.metadata.deb]
maintainer = "Damon Petta <d@disassemble.net>"
copyright = "2025, Damon Petta <d@disassemble.net>"
license-file = ["LICENSE", "0"]
extended-description = "Reads legacy .doc and .xls, modern .docx, .xlsx, and .pptx, and PDF files and dumps their text to stdout. When stdout is a terminal the output is pretty-printed as syntax-highlighted markdown via bat; when piped, plain text is emitted. Format is detected by file signature, not extension. Spiritual successor to catdoc."
depends = "$auto"
section = "utils"
priority = "optional"
assets = [
["target/release/batdoc", "usr/bin/", "755"],
["target/man/batdoc.1", "usr/share/man/man1/batdoc.1", "644"],
["README.md", "usr/share/doc/batdoc/README", "644"],
]