[package]
name = "mio-serial"
version = "3.1.0"
authors = ["Zac Berkowitz <zac.berkowitz@gmail.com>"]
description = "A serial port implementation for mio"
license = "MIT"
homepage = "https://github.com/berkowski/mio-serial"
repository = "https://github.com/berkowski/mio-serial"
documentation = "http://docs.rs/mio-serial"
readme = "README.md"
keywords = ["rs232", "serial", "mio"]
categories = ["asynchronous", "hardware-support"]

[badges]
appveyor = { repository = "berkowski/mio-serial", service = "github" }
travis-ci = { repository = "berkowski/mio-serial", service = "github" }

[features]
default = ["libudev"]

libudev = ["serialport/libudev"]

[dependencies]
mio = "0.6"
serialport = "~3.1"

[target.'cfg(unix)'.dependencies]
nix = "0.11"

[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["commapi", "handleapi", "winbase"] }
mio-named-pipes = "0.1.5"

[[example]]
name = "serial_printline"
path = "examples/serial_printline.rs"

[package]
name = "mio-serial"
version = "3.1.0"
authors = ["Zac Berkowitz <zac.berkowitz@gmail.com>"]
description = "A serial port implementation for mio"
license = "MIT"
homepage = "https://github.com/berkowski/mio-serial"
repository = "https://github.com/berkowski/mio-serial"
documentation = "http://docs.rs/mio-serial"
readme = "README.md"
keywords = ["rs232", "serial", "mio"]
categories = ["asynchronous", "hardware-support"]

[badges]
appveyor = { repository = "berkowski/mio-serial", service = "github" }
travis-ci = { repository = "berkowski/mio-serial", service = "github" }

[features]
default = ["libudev"]

libudev = ["serialport/libudev"]

[dependencies]
mio = "0.6"
serialport = { version = "~3.1", default-features = false }

[target.'cfg(unix)'.dependencies]
nix = "0.11"

[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["commapi", "handleapi", "winbase"] }
mio-named-pipes = "0.1.5"

[[example]]
name = "serial_printline"
path = "examples/serial_printline.rs"

Fix feature flag to not mandatory require libudev
Fix feature flag to not mandatory require libudev

Before, the serialport/default feature wasn't turned off even if the default
feature of the mio-serial was off. We need to deselect the serialport/default
explicitly, and turn it on by the default of the mio-serial.
