Debian Codegraph @

src/uu/stdbuf/Cargo.toml

raw
1 # spell-checker:ignore dpkg
2 [package]
3 name = "uu_stdbuf"
4 description = "stdbuf ~ (uutils) run COMMAND with modified standard stream buffering"
5 repository = "https://github.com/uutils/coreutils/tree/main/src/uu/stdbuf"
6 version.workspace = true
7 license.workspace = true
8 homepage.workspace = true
9 keywords.workspace = true
10 categories.workspace = true
11 edition.workspace = true
12 rust-version.workspace = true
13 readme.workspace = true
14
15 [lib]
16 path = "src/stdbuf.rs"
17 test = false
18 doctest = false
19
20 [dependencies]
21 clap = { workspace = true }
22 tempfile = { workspace = true }
23 uucore = { workspace = true, features = ["parser-size"] }
24 thiserror = { workspace = true }
25 fluent = { workspace = true }
26
27 [target.'cfg(unix)'.dependencies]
28 libstdbuf = { package = "uu_stdbuf_libstdbuf", version = "0.12.0", path = "src/libstdbuf" }
29
30 # "feat_external_libstdbuf": use an external libstdbuf.so for stdbuf instead of embedding it into
31 # the stdbuf binary.
32 # There are 2 use-cases:
33 # 1. Installation of uutils-coreutils using cargo install (e.g. from crates.io
34 # which supports only "cargo install" as installation method). In this case,
35 # installing libstdbuf.so is impossible, because "cargo install" installs
36 # only binary programs (no cdylib), thus libstdbuf.so must be embedded into
37 # stdbuf and written to /tmp at runtime. This is a hack, and may not work
38 # on some platforms, e.g. because the SELinux permissions may not allow
39 # stdbuf to write to /tmp, /tmp may be read-only, libstdbuf.so may not work
40 # at all without SELinux labels, etc.
41 # See https://github.com/rust-lang/cargo/issues/8317, still unresolved.
42 #
43 # 2. Installation of uutils-coreutils using an external tool, e.g. dpkg/apt on
44 # debian. In this case, libstdbuf.so should be installed separately to its
45 # correct location and the environment variable LIBSTDBUF_DIR configures the
46 # installation directory during the build. E.g. LIBSTDBUF_DIR="/usr/lib"
47
48 [features]
49 feat_external_libstdbuf = []
50
51 [lints]
52 workspace = true
53
54 [[bin]]
55 name = "stdbuf"
56 path = "src/main.rs"