[package]
edition = "2021"
rust-version = "1.75"
name = "conpty-oxide"
version = "0.1.2"
build = false
include = [
"/src/**",
"/tests/**",
"/examples/**",
"/README.md",
"/CHANGELOG.md",
"/docs/conpty-pitfalls.md",
"/REUSE.toml",
"/LICENSE-APACHE",
"/LICENSE-MIT",
"/LICENSES/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Correctness-first Windows ConPTY (pseudoconsole) library with sync and async (tokio) APIs"
documentation = "https://docs.rs/conpty-oxide"
readme = "README.md"
keywords = [
"conpty",
"pty",
"pseudoconsole",
"windows",
"terminal",
]
categories = [
"os::windows-apis",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/P4suta/conpty-oxide"
[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-pc-windows-msvc"
targets = [
"x86_64-pc-windows-msvc",
"aarch64-pc-windows-msvc",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
blocking = []
default = ["blocking"]
tokio = ["dep:tokio"]
tracing = ["dep:tracing"]
[lib]
name = "conpty_oxide"
path = "src/lib.rs"
[[example]]
name = "blocking_echo"
path = "examples/blocking_echo.rs"
required-features = ["blocking"]
[[example]]
name = "tokio_interactive"
path = "examples/tokio_interactive.rs"
required-features = ["tokio"]
[[test]]
name = "backend_dll"
path = "tests/backend_dll.rs"
[[test]]
name = "blocking_basic"
path = "tests/blocking_basic.rs"
[[test]]
name = "close_hang"
path = "tests/close_hang.rs"
[[test]]
name = "eof_semantics"
path = "tests/eof_semantics.rs"
[[test]]
name = "kill_tree"
path = "tests/kill_tree.rs"
[[test]]
name = "managed_drop_order"
path = "tests/managed_drop_order.rs"
[[test]]
name = "managed_session"
path = "tests/managed_session.rs"
[[test]]
name = "owned_halves"
path = "tests/owned_halves.rs"
[[test]]
name = "public_api"
path = "tests/public_api.rs"
[[test]]
name = "resize"
path = "tests/resize.rs"
[[test]]
name = "soak"
path = "tests/soak.rs"
[[test]]
name = "tokio_backend_dll"
path = "tests/tokio_backend_dll.rs"
[[test]]
name = "tokio_basic"
path = "tests/tokio_basic.rs"
[[test]]
name = "tokio_child"
path = "tests/tokio_child.rs"
[[test]]
name = "tokio_close_hang"
path = "tests/tokio_close_hang.rs"
[[test]]
name = "tokio_eof"
path = "tests/tokio_eof.rs"
[target."cfg(windows)".dependencies.thiserror]
version = "2"
[target."cfg(windows)".dependencies.tokio]
version = "1"
features = [
"net",
"rt",
]
optional = true
[target."cfg(windows)".dependencies.tracing]
version = "0.1"
optional = true
[target."cfg(windows)".dependencies.windows-spawn]
version = "0.1.0"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_System_Console",
"Win32_System_Diagnostics_Debug",
"Win32_System_Pipes",
"Win32_System_Threading",
"Win32_System_LibraryLoader",
"Win32_System_SystemInformation",
"Win32_Storage_FileSystem",
"Win32_Security",
"Win32_System_IO",
]
[target."cfg(windows)".dev-dependencies.tokio]
version = "1"
features = [
"io-util",
"macros",
"net",
"rt",
"rt-multi-thread",
"sync",
"time",
]
[target."cfg(windows)".dev-dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_System_Diagnostics_ToolHelp",
"Win32_System_JobObjects",
]
[lints.clippy]
assigning_clones = "deny"
dbg_macro = "deny"
doc_link_code = "deny"
future_not_send = "deny"
missing_const_for_fn = "deny"
needless_collect = "deny"
option_if_let_else = "deny"
rc_buffer = "deny"
redundant_clone = "deny"
todo = "deny"
unimplemented = "deny"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.cargo]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
missing_docs = "deny"
unreachable_pub = "deny"
unsafe_op_in_unsafe_fn = "deny"
unused_qualifications = "deny"
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1