1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 12:37:49 +00:00

id: add conditional compilation for selinux

This commit is contained in:
Jan Scheer 2021-07-12 17:33:24 +02:00
parent 92bc647ac3
commit 7abc6a665e
No known key found for this signature in database
GPG key ID: C62AD4C29E2B9828
6 changed files with 50 additions and 20 deletions

View file

@ -146,6 +146,7 @@ feat_os_unix_musl = [
feat_require_crate_cpp = [
"stdbuf",
]
feat_selinux = ["id/selinux", "selinux"]
# "feat_require_unix" == set of utilities requiring support which is only available on unix platforms (as of 2020-04-23)
feat_require_unix = [
"chgrp",
@ -229,6 +230,7 @@ clap = { version = "2.33", features = ["wrap_help"] }
lazy_static = { version="1.3" }
textwrap = { version="=0.11.0", features=["term_size"] } # !maint: [2020-05-10; rivy] unstable crate using undocumented features; pinned currently, will review
uucore = { version=">=0.0.9", package="uucore", path="src/uucore" }
selinux = { version="0.1.1", optional = true }
# * uutils
uu_test = { optional=true, version="0.0.7", package="uu_test", path="src/uu/test" }
#
@ -353,7 +355,6 @@ unindent = "0.1"
uucore = { version=">=0.0.9", package="uucore", path="src/uucore", features=["entries", "process"] }
walkdir = "2.2"
atty = "0.2"
selinux = "0.1.1"
[target.'cfg(unix)'.dev-dependencies]
rlimit = "0.4.0"