Joel Galenson | 4bf0c30 | 2020-10-23 08:03:13 -0700 | [diff] [blame] | 1 | [package] |
| 2 | edition = "2018" |
| 3 | name = "mio" |
| 4 | # When releasing to crates.io: |
| 5 | # - Update html_root_url. |
| 6 | # - Update CHANGELOG.md. |
| 7 | # - Update doc URL. |
| 8 | # - Create git tag |
Joel Galenson | 0a254c3 | 2021-06-21 13:30:46 -0700 | [diff] [blame] | 9 | version = "0.7.13" |
Joel Galenson | 4bf0c30 | 2020-10-23 08:03:13 -0700 | [diff] [blame] | 10 | license = "MIT" |
Haibo Huang | 0cb7a8f | 2021-01-05 21:36:04 -0800 | [diff] [blame] | 11 | authors = [ |
| 12 | "Carl Lerche <me@carllerche.com>", |
| 13 | "Thomas de Zeeuw <thomasdezeeuw@gmail.com>", |
| 14 | "Tokio Contributors <team@tokio.rs>", |
| 15 | ] |
Joel Galenson | 4bf0c30 | 2020-10-23 08:03:13 -0700 | [diff] [blame] | 16 | description = "Lightweight non-blocking IO" |
Joel Galenson | 0a254c3 | 2021-06-21 13:30:46 -0700 | [diff] [blame] | 17 | documentation = "https://docs.rs/mio/0.7.13" |
Joel Galenson | 4bf0c30 | 2020-10-23 08:03:13 -0700 | [diff] [blame] | 18 | homepage = "https://github.com/tokio-rs/mio" |
| 19 | repository = "https://github.com/tokio-rs/mio" |
| 20 | readme = "README.md" |
| 21 | keywords = ["io", "async", "non-blocking"] |
| 22 | categories = ["asynchronous"] |
| 23 | include = [ |
| 24 | "Cargo.toml", |
| 25 | "LICENSE", |
| 26 | "README.md", |
| 27 | "CHANGELOG.md", |
| 28 | "src/**/*.rs", |
| 29 | "examples/**/*.rs", |
| 30 | ] |
| 31 | |
Haibo Huang | b871bf7 | 2020-11-16 17:42:39 -0800 | [diff] [blame] | 32 | # For documentation of features see the `mio::features` module. |
Joel Galenson | 4bf0c30 | 2020-10-23 08:03:13 -0700 | [diff] [blame] | 33 | [features] |
Haibo Huang | b871bf7 | 2020-11-16 17:42:39 -0800 | [diff] [blame] | 34 | # By default Mio only provides a shell implementation. |
Joel Galenson | 4bf0c30 | 2020-10-23 08:03:13 -0700 | [diff] [blame] | 35 | default = [] |
Haibo Huang | b871bf7 | 2020-11-16 17:42:39 -0800 | [diff] [blame] | 36 | |
| 37 | # Enables the `Poll` and `Registry` types. |
Joel Galenson | 4bf0c30 | 2020-10-23 08:03:13 -0700 | [diff] [blame] | 38 | os-poll = [] |
Haibo Huang | b871bf7 | 2020-11-16 17:42:39 -0800 | [diff] [blame] | 39 | # Enables additional OS specific extensions, e.g. Unix `pipe(2)`. |
| 40 | os-ext = ["os-poll"] |
| 41 | # Enables `mio::net` module containing networking primitives. |
| 42 | net = [] |
| 43 | |
| 44 | # Deprecated features, will be removed in a future version. |
| 45 | extra-docs = [] # Docs are now always present. |
| 46 | tcp = ["net"] # Replaced with "net" feature. |
| 47 | udp = ["net"] # Replaced with "net" feature. |
| 48 | uds = ["net"] # Replaced with "net" feature. |
| 49 | pipe = ["os-ext"] # Replaced with "os-ext" feature. |
| 50 | os-util = ["os-ext"]# Replaced with "os-ext" feature. |
Joel Galenson | 4bf0c30 | 2020-10-23 08:03:13 -0700 | [diff] [blame] | 51 | |
| 52 | [dependencies] |
| 53 | log = "0.4.8" |
| 54 | |
| 55 | [target.'cfg(unix)'.dependencies] |
Haibo Huang | 800e864 | 2021-02-17 19:53:43 -0800 | [diff] [blame] | 56 | libc = "0.2.86" |
Joel Galenson | 4bf0c30 | 2020-10-23 08:03:13 -0700 | [diff] [blame] | 57 | |
| 58 | [target.'cfg(windows)'.dependencies] |
Haibo Huang | b871bf7 | 2020-11-16 17:42:39 -0800 | [diff] [blame] | 59 | miow = "0.3.6" |
Joel Galenson | aa25fe6 | 2021-04-01 17:18:00 -0700 | [diff] [blame] | 60 | winapi = { version = "0.3", features = ["winsock2", "mswsock", "mstcpip"] } |
Joel Galenson | 4bf0c30 | 2020-10-23 08:03:13 -0700 | [diff] [blame] | 61 | ntapi = "0.3" |
| 62 | |
| 63 | [dev-dependencies] |
| 64 | env_logger = { version = "0.6.2", default-features = false } |
Joel Galenson | 4bf0c30 | 2020-10-23 08:03:13 -0700 | [diff] [blame] | 65 | rand = "0.4" |
Joel Galenson | 4bf0c30 | 2020-10-23 08:03:13 -0700 | [diff] [blame] | 66 | |
| 67 | [package.metadata.docs.rs] |
| 68 | all-features = true |
| 69 | rustdoc-args = ["--cfg", "docsrs"] |
Haibo Huang | 0cb7a8f | 2021-01-05 21:36:04 -0800 | [diff] [blame] | 70 | targets = [ |
| 71 | "aarch64-apple-ios", |
| 72 | "aarch64-linux-android", |
| 73 | "x86_64-apple-darwin", |
| 74 | "x86_64-pc-windows-msvc", |
| 75 | "x86_64-sun-solaris", |
| 76 | "x86_64-unknown-dragonfly", |
| 77 | "x86_64-unknown-freebsd", |
| 78 | "x86_64-unknown-linux-gnu", |
| 79 | "x86_64-unknown-netbsd", |
| 80 | "x86_64-unknown-openbsd", |
| 81 | ] |
| 82 | |
Joel Galenson | 4bf0c30 | 2020-10-23 08:03:13 -0700 | [diff] [blame] | 83 | |
| 84 | [package.metadata.playground] |
Haibo Huang | b871bf7 | 2020-11-16 17:42:39 -0800 | [diff] [blame] | 85 | features = ["os-poll", "os-ext", "net"] |
Joel Galenson | 4bf0c30 | 2020-10-23 08:03:13 -0700 | [diff] [blame] | 86 | |
| 87 | [[example]] |
| 88 | name = "tcp_server" |
Haibo Huang | b871bf7 | 2020-11-16 17:42:39 -0800 | [diff] [blame] | 89 | required-features = ["os-poll", "net"] |
Joel Galenson | 4bf0c30 | 2020-10-23 08:03:13 -0700 | [diff] [blame] | 90 | |
| 91 | [[example]] |
| 92 | name = "udp_server" |
Haibo Huang | b871bf7 | 2020-11-16 17:42:39 -0800 | [diff] [blame] | 93 | required-features = ["os-poll", "net"] |