[package]
edition = "2021"
rust-version = "1.75"
name = "selection-capture"
version = "0.1.5"
authors = ["zamery <zaob.ogn@gmail.com>"]
build = false
include = [
"src/**",
"tests/**",
"Cargo.toml",
"README.md",
"LICENSE*",
"docs/technical/SPEC.md",
"docs/technical/WINDOWS.md",
"docs/technical/LINUX.md",
"docs/technical/MONITORING.md",
"docs/technical/PERFORMANCE_BASELINE.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sync, cancellable selected-text capture engine with strategy-aware fallbacks"
homepage = "https://github.com/maemreyo/selection-capture"
documentation = "https://docs.rs/selection-capture"
readme = "README.md"
keywords = [
"selection",
"macos",
"accessibility",
"clipboard",
"capture",
]
categories = [
"api-bindings",
"os::macos-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/maemreyo/selection-capture"
[package.metadata.docs.rs]
default-target = "x86_64-unknown-linux-gnu"
targets = ["x86_64-unknown-linux-gnu"]
all-features = true
[features]
async = ["dep:tokio"]
default = []
linux-alpha = ["dep:atspi"]
rich-content = [
"dep:clipboard-rs",
"dep:quick_html2md",
"dep:rtf-to-html",
]
windows-beta = ["dep:windows"]
[lib]
name = "selection_capture"
path = "src/lib.rs"
[[test]]
name = "async_capture"
path = "tests/async_capture.rs"
[[test]]
name = "linux_smoke"
path = "tests/linux_smoke.rs"
[[test]]
name = "monitoring"
path = "tests/monitoring.rs"
[[test]]
name = "perf_smoke"
path = "tests/perf_smoke.rs"
[[test]]
name = "shared_engine"
path = "tests/shared_engine.rs"
[[test]]
name = "windows_smoke"
path = "tests/windows_smoke.rs"
[dependencies.clipboard-rs]
version = "0.3.3"
optional = true
[dependencies.quick_html2md]
version = "0.2.1"
optional = true
[dependencies.rtf-to-html]
version = "0.1.0"
optional = true
[dependencies.tokio]
version = "1.50.0"
features = [
"macros",
"rt",
"rt-multi-thread",
]
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.5"
[target.'cfg(target_os = "linux")'.dependencies.atspi]
version = "0.29.0"
optional = true
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.accessibility-ng]
version = "0.1"
[target.'cfg(target_os = "macos")'.dependencies.accessibility-sys-ng]
version = "0.1"
[target.'cfg(target_os = "macos")'.dependencies.active-win-pos-rs]
version = "0.8"
[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
version = "0.9.4"
[target.'cfg(target_os = "macos")'.dependencies.core-graphics-types]
version = "0.1.3"
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.macos-accessibility-client]
version = "0.0.1"
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62.2"
optional = true
default-features = false
[profile.dev]
opt-level = 0
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
strip = true