[package] name = "winpty-rs" version = "0.4.0" edition = "2021" links = "winpty" license = "MIT OR Apache-2.0" description = "Create and spawn processes inside a pseudoterminal in Windows" homepage = "https://github.com/andfoy/winpty-rs" readme = "README.md" repository = "https://github.com/andfoy/winpty-rs" keywords = ["windows", "pty", "winpty", "conpty", "pseudoterminal"] [dependencies] enum-primitive-derive = "0.3.0" num-traits = "0.2" bitflags = "2.3" [build-dependencies] which = "6.0.0" [dependencies.windows] version = "0.58.0" features = [ "Win32_Foundation", "Win32_Storage_FileSystem", "Win32_System_IO", "Win32_System_Pipes", "Win32_System_Threading", "Win32_Security", "Win32_Globalization", # ConPTY-specific "Win32_System_Console", "Win32_UI_WindowsAndMessaging" ] [build-dependencies.windows] version = "0.58.0" features = [ "Win32_Foundation", "Win32_System_LibraryLoader" ] [dev-dependencies] regex = "1.5" [package.metadata.docs.rs] default-target = "x86_64-pc-windows-msvc" targets = ["x86_64-pc-windows-msvc"] [features] conpty = [] winpty = [] winpty_example = ["winpty"] conpty_example = ["conpty"] [lib] name = "winptyrs" path = "src/lib.rs" [[bin]] name = "winpty_example" path = "src/examples/winpty.rs" required-features = ["winpty_example"] [[bin]] name = "conpty_example" path = "src/examples/conpty.rs" required-features = ["conpty_example"]