| 1 |
[package] |
| 2 |
name = "uu_cp" |
| 3 |
description = "cp ~ (uutils) copy SOURCE to DESTINATION" |
| 4 |
repository = "https://github.com/uutils/coreutils/tree/main/src/uu/cp" |
| 5 |
version.workspace = true |
| 6 |
license.workspace = true |
| 7 |
homepage.workspace = true |
| 8 |
keywords.workspace = true |
| 9 |
categories.workspace = true |
| 10 |
edition.workspace = true |
| 11 |
rust-version.workspace = true |
| 12 |
readme.workspace = true |
| 13 |
|
| 14 |
[lib] |
| 15 |
path = "src/cp.rs" |
| 16 |
doctest = false |
| 17 |
|
| 18 |
[dependencies] |
| 19 |
clap = { workspace = true } |
| 20 |
filetime = { workspace = true } |
| 21 |
libc = { workspace = true } |
| 22 |
uucore = { workspace = true, features = [ |
| 23 |
"backup-control", |
| 24 |
"buf-copy", |
| 25 |
"entries", |
| 26 |
"fs", |
| 27 |
"fsxattr", |
| 28 |
"parser", |
| 29 |
"perms", |
| 30 |
"mode", |
| 31 |
"safe-copy", |
| 32 |
"update-control", |
| 33 |
] } |
| 34 |
walkdir = { workspace = true } |
| 35 |
indicatif = { workspace = true } |
| 36 |
thiserror = { workspace = true } |
| 37 |
fluent = { workspace = true } |
| 38 |
|
| 39 |
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies] |
| 40 |
selinux = { workspace = true, optional = true } |
| 41 |
|
| 42 |
[target.'cfg(any(target_os = "linux", target_os = "android", target_os = "wasi"))'.dependencies] |
| 43 |
rustix = { workspace = true, features = ["fs"] } |
| 44 |
|
| 45 |
[target.'cfg(unix)'.dependencies] |
| 46 |
nix = { workspace = true, features = ["fs"] } |
| 47 |
|
| 48 |
[target.'cfg(windows)'.dependencies] |
| 49 |
windows-sys = { workspace = true, features = [ |
| 50 |
"Win32_Foundation", |
| 51 |
"Win32_Storage_FileSystem", |
| 52 |
] } |
| 53 |
|
| 54 |
[[bin]] |
| 55 |
name = "cp" |
| 56 |
path = "src/main.rs" |
| 57 |
|
| 58 |
[dev-dependencies] |
| 59 |
divan = { workspace = true } |
| 60 |
tempfile = { workspace = true } |
| 61 |
uucore = { workspace = true, features = ["benchmark"] } |
| 62 |
|
| 63 |
[[bench]] |
| 64 |
name = "cp_bench" |
| 65 |
harness = false |
| 66 |
|
| 67 |
[features] |
| 68 |
selinux = ["dep:selinux", "uucore/selinux"] |
| 69 |
|
| 70 |
[lints] |
| 71 |
workspace = true |