softprops / atty

are you or are you not a tty?
MIT License
271 stars 48 forks source link

feat: Add optional dep-of-std feature #45

Open mattwilkinsonn opened 3 years ago

mattwilkinsonn commented 3 years ago

Adds two optional dependencies 'core' and 'compiler-builtins' so this crate can be used inside the rust standard library.

Trying to use it here: https://github.com/rust-lang/rust/pull/81807, but this won't compile unless this feature is added. This is identical to how it is implemented in cfg-if: https://github.com/alexcrichton/cfg-if/blob/main/Cargo.toml