Merge pull request #37 from softprops/support-older-versions-of-rust

Support older versions of rust
This commit is contained in:
Doug Tangren
2019-07-15 23:13:43 -04:00
committed by GitHub
4 changed files with 12 additions and 2 deletions
+4
View File
@@ -1,3 +1,7 @@
# 0.2.13
* support older versions of rust that do now support 2018 edition
# 0.2.12
* Redox is now in the unix family so redox cfg is no longer needed [#35](https://github.com/softprops/atty/pull/35)
+1 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "atty"
version = "0.2.12"
version = "0.2.13"
authors = ["softprops <d.tangren@gmail.com>"]
description = "A simple interface for querying atty"
documentation = "http://softprops.github.io/atty"
@@ -10,7 +10,6 @@ keywords = ["terminal", "tty", "isatty"]
license = "MIT"
readme = "README.md"
exclude = ["/.travis.yml", "/appveyor.yml"]
edition = "2018"
[badges]
travis-ci = { repository = "softprops/atty" }
+2
View File
@@ -1,3 +1,5 @@
extern crate atty;
use atty::{is, Stream};
fn main() {
+5
View File
@@ -17,6 +17,11 @@
#![cfg_attr(unix, no_std)]
#[cfg(unix)]
extern crate libc;
#[cfg(windows)]
extern crate winapi;
#[cfg(windows)]
use winapi::shared::minwindef::DWORD;
#[cfg(windows)]