mirror of
https://github.com/openharmony/third_party_rust_atty.git
synced 2026-07-01 09:25:06 -04:00
Merge pull request #37 from softprops/support-older-versions-of-rust
Support older versions of rust
This commit is contained in:
@@ -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
@@ -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" }
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
extern crate atty;
|
||||
|
||||
use atty::{is, Stream};
|
||||
|
||||
fn main() {
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user