mirror of https://github.com/smol-rs/polling
Add feature
This commit is contained in:
parent
8c7ce8fb5b
commit
272bb11eaf
|
@ -38,6 +38,12 @@ jobs:
|
||||||
command: check
|
command: check
|
||||||
args: --all --bins --all-features
|
args: --all --bins --all-features
|
||||||
|
|
||||||
|
- name: Run cargo check without default features
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: check
|
||||||
|
args: --no-default-features
|
||||||
|
|
||||||
- name: Run cargo check
|
- name: Run cargo check
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "polling"
|
name = "polling"
|
||||||
version = "1.0.3"
|
version = "1.1.0"
|
||||||
authors = ["Stjepan Glavina <stjepang@gmail.com>"]
|
authors = ["Stjepan Glavina <stjepang@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
description = "Portable interface to epoll, kqueue, event ports, and wepoll"
|
description = "Portable interface to epoll, kqueue, event ports, and wepoll"
|
||||||
|
@ -12,6 +12,10 @@ keywords = ["mio", "epoll", "kqueue", "iocp", "wepoll"]
|
||||||
categories = ["asynchronous", "network-programming", "os"]
|
categories = ["asynchronous", "network-programming", "os"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = ["std"]
|
||||||
|
std = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cfg-if = "0.1.10"
|
cfg-if = "0.1.10"
|
||||||
log = "0.4.11"
|
log = "0.4.11"
|
||||||
|
|
|
@ -46,6 +46,8 @@
|
||||||
//! # std::io::Result::Ok(())
|
//! # std::io::Result::Ok(())
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
|
#![cfg(feature = "std")]
|
||||||
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
|
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
Loading…
Reference in New Issue