[package]
name = "uu_cp"
description = "cp ~ (uutils) copy SOURCE to DESTINATION"
repository = "https://github.com/uutils/coreutils/tree/main/src/uu/cp"
version.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true
keywords.workspace = true
categories.workspace = true
edition.workspace = true
rust-version.workspace = true
readme.workspace = true

[lints]
workspace = true

[lib]
path = "src/cp.rs"

[dependencies]
clap = { workspace = true }
filetime = { workspace = true }
libc = { workspace = true }
selinux = { workspace = true, optional = true }
uucore = { workspace = true, features = [
  "backup-control",
  "buf-copy",
  "entries",
  "fs",
  "fsxattr",
  "parser",
  "perms",
  "mode",
  "update-control",
] }
walkdir = { workspace = true }
indicatif = { workspace = true }
thiserror = { workspace = true }
fluent = { workspace = true }

[target.'cfg(unix)'.dependencies]
exacl = { workspace = true, optional = true }
nix = { workspace = true, features = ["fs"] }

[[bin]]
name = "cp"
path = "src/main.rs"

[dev-dependencies]
divan = { workspace = true }
tempfile = { workspace = true }
uucore = { workspace = true, features = ["benchmark"] }

[[bench]]
name = "cp_bench"
harness = false

[features]
feat_selinux = ["selinux", "uucore/selinux"]
feat_acl = ["exacl"]
