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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2018"
name = "netlink-sys"
version = "0.8.7"
authors = ["Corentin Henry <corentinhenry@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "netlink sockets, with optional integration with tokio"
homepage = "https://github.com/rust-netlink/netlink-sys"
readme = "README.md"
keywords = [
"netlink",
"ip",
"linux",
]
license = "MIT"
repository = "https://github.com/rust-netlink/netlink-sys"
[lib]
name = "netlink_sys"
path = "src/lib.rs"
[[example]]
name = "audit_events"
path = "examples/audit_events.rs"
[[example]]
name = "audit_events_async_std"
path = "examples/audit_events_async_std.rs"
required-features = ["smol_socket"]
[[example]]
name = "audit_events_tokio"
path = "examples/audit_events_tokio.rs"
required-features = ["tokio_socket"]
[[example]]
name = "audit_events_tokio_manual_thread_builder"
path = "examples/audit_events_tokio_manual_thread_builder.rs"
required-features = ["tokio_socket"]
[dependencies.async-io]
version = "2"
optional = true
[dependencies.bytes]
version = "1.8"
[dependencies.futures]
version = "0.3.31"
optional = true
[dependencies.libc]
version = "0.2.164"
[dependencies.log]
version = "0.4.8"
[dependencies.mio]
version = "1.0"
features = [
"os-poll",
"os-ext",
]
optional = true
[dependencies.tokio]
version = "1.41.1"
features = ["net"]
optional = true
default-features = false
[dev-dependencies.async-std]
version = "1.13"
features = ["attributes"]
[dev-dependencies.netlink-packet-audit]
version = "0.4.1"
[dev-dependencies.tokio]
version = "1.0.1"
features = [
"net",
"macros",
"rt-multi-thread",
]
default-features = false
[features]
default = []
mio_socket = ["mio"]
smol_socket = [
"async-io",
"futures",
]
tokio_socket = [
"tokio",
"futures",
]
|