6 个稳定版本

3.0.0 2024年2月4日
2.1.0 2024年1月19日
2.0.0 2023年3月14日
1.0.2 2021年9月27日
1.0.1 2021年9月11日

#210命令行界面 类别

Download history · Rust 包仓库 100795/week @ 2024-04-20 · Rust 包仓库 96268/week @ 2024-04-27 · Rust 包仓库 108809/week @ 2024-05-04 · Rust 包仓库 114779/week @ 2024-05-11 · Rust 包仓库 104517/week @ 2024-05-18 · Rust 包仓库 113263/week @ 2024-05-25 · Rust 包仓库 183361/week @ 2024-06-01 · Rust 包仓库 150050/week @ 2024-06-08 · Rust 包仓库 130135/week @ 2024-06-15 · Rust 包仓库 115417/week @ 2024-06-22 · Rust 包仓库 112933/week @ 2024-06-29 · Rust 包仓库 105680/week @ 2024-07-06 · Rust 包仓库 104318/week @ 2024-07-13 · Rust 包仓库 111825/week @ 2024-07-20 · Rust 包仓库 114729/week @ 2024-07-27 · Rust 包仓库 104469/week @ 2024-08-03 · Rust 包仓库

452,816 每月下载量
142 个 crate(12 个直接使用) 中使用

Apache-2.0 协议

8KB

检测终端是否支持 Unicode。

这个 crate 是将 @sindresorhusis-unicode-supported@iarnahas-unicode NPM 包混合在一起的 Rust 端口。

示例

use supports_unicode::Stream;

if supports_unicode::on(Stream::Stdout) {
    println!("stdout supports unicode output");
} else {
    println!("no unicode, please");
}

MSRV

此 crate 需要 rustc 1.70.0 或更高版本。

无运行时依赖