-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
34 lines (30 loc) · 1.2 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[package]
name = "posixmq"
version = "1.0.0"
description = "An idiomatic library for using posix message queues, with optional mio integration"
readme = "README.md"
repository = "https://github.com/tormol/posixmq"
license = "Apache-2.0 / MIT"
authors = ["Torbjørn Birch Moltu <t.b.moltu@lyse.net>"]
keywords = ["posix", "mq", "mqueue", "queue"]
categories = ["os::unix-apis", "asynchronous"]
exclude = ["/tests/*.sh", "/tests/*.c"]
edition = "2018"
[dependencies]
libc = "0.2.59"
# 0.2.59 added mq_timed{send,receive}() and FIONCLEX for Linux and all mq_ functions for solarish
mio_06 = {package="mio", version="0.6.14", optional=true}
# 0.6.13 drags in libc 0.1 when built with -Z minimal-versions
mio_07 = {package="mio", version="0.7.0", features=["os-util"], optional=true}
# examples and tests for mio_07 also requires mio feature os-poll,
# but adding it as a dev-dependency would also enable it in all cases (cargo bug #4866)
# instead RUSTFLAGS='--cfg feature="os-poll"' must be used to build & run mio_07 tests
[lib]
path = "posixmq.rs"
[[example]]
name = "merge"
path = "examples/merge.rs"
required-features = ["mio_07"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "feature=\"os-poll\""]