# 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 = "2021"
rust-version = "1.66.1"
name = "rtnetlink"
version = "0.19.0"
authors = ["Corentin Henry <corentinhenry@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "manipulate linux networking resources via netlink"
homepage = "https://github.com/rust-netlink/rtnetlink"
readme = "README.md"
keywords = [
    "netlink",
    "ip",
    "linux",
]
license = "MIT"
repository = "https://github.com/rust-netlink/rtnetlink"

[features]
default = ["tokio_socket"]
smol_socket = [
    "netlink-proto/smol_socket",
    "async-global-executor",
]
test_as_root = []
tokio_socket = [
    "netlink-proto/tokio_socket",
    "tokio",
]

[lib]
name = "rtnetlink"
path = "src/lib.rs"

[[example]]
name = "add_address"
path = "examples/add_address.rs"

[[example]]
name = "add_neighbour"
path = "examples/add_neighbour.rs"

[[example]]
name = "add_netns"
path = "examples/add_netns.rs"

[[example]]
name = "add_netns_async"
path = "examples/add_netns_async.rs"

[[example]]
name = "add_route"
path = "examples/add_route.rs"

[[example]]
name = "add_route_ecmp"
path = "examples/add_route_ecmp.rs"

[[example]]
name = "add_route_mpls"
path = "examples/add_route_mpls.rs"

[[example]]
name = "add_route_pref_src"
path = "examples/add_route_pref_src.rs"

[[example]]
name = "add_rule"
path = "examples/add_rule.rs"

[[example]]
name = "add_tc_qdisc_ingress"
path = "examples/add_tc_qdisc_ingress.rs"

[[example]]
name = "create_bond"
path = "examples/create_bond.rs"

[[example]]
name = "create_bridge"
path = "examples/create_bridge.rs"

[[example]]
name = "create_dummy"
path = "examples/create_dummy.rs"

[[example]]
name = "create_macvlan"
path = "examples/create_macvlan.rs"

[[example]]
name = "create_macvtap"
path = "examples/create_macvtap.rs"

[[example]]
name = "create_veth"
path = "examples/create_veth.rs"

[[example]]
name = "create_vlan"
path = "examples/create_vlan.rs"

[[example]]
name = "create_vrf"
path = "examples/create_vrf.rs"

[[example]]
name = "create_vxlan"
path = "examples/create_vxlan.rs"

[[example]]
name = "create_wireguard"
path = "examples/create_wireguard.rs"

[[example]]
name = "create_xfrm"
path = "examples/create_xfrm.rs"

[[example]]
name = "del_address"
path = "examples/del_address.rs"

[[example]]
name = "del_link"
path = "examples/del_link.rs"

[[example]]
name = "del_netns"
path = "examples/del_netns.rs"

[[example]]
name = "del_netns_async"
path = "examples/del_netns_async.rs"

[[example]]
name = "flush_addresses"
path = "examples/flush_addresses.rs"

[[example]]
name = "get_address"
path = "examples/get_address.rs"

[[example]]
name = "get_bond_port_settings"
path = "examples/get_bond_port_settings.rs"

[[example]]
name = "get_links"
path = "examples/get_links.rs"

[[example]]
name = "get_links_async"
path = "examples/get_links_async.rs"

[[example]]
name = "get_links_thread_builder"
path = "examples/get_links_thread_builder.rs"

[[example]]
name = "get_neighbours"
path = "examples/get_neighbours.rs"

[[example]]
name = "get_route"
path = "examples/get_route.rs"

[[example]]
name = "get_route_kernel_filter"
path = "examples/get_route_kernel_filter.rs"

[[example]]
name = "get_rule"
path = "examples/get_rule.rs"

[[example]]
name = "ip_monitor"
path = "examples/ip_monitor.rs"

[[example]]
name = "listen"
path = "examples/listen.rs"

[[example]]
name = "property_altname"
path = "examples/property_altname.rs"

[[example]]
name = "set_bond_port"
path = "examples/set_bond_port.rs"

[[example]]
name = "set_link_down"
path = "examples/set_link_down.rs"

[dependencies.async-global-executor]
version = "2.0.2"
optional = true

[dependencies.futures-channel]
version = "0.3.11"

[dependencies.futures-util]
version = "0.3.11"

[dependencies.log]
version = "0.4.8"

[dependencies.netlink-packet-core]
version = "0.8"

[dependencies.netlink-packet-route]
version = "0.26"

[dependencies.netlink-proto]
version = "0.12.0"
default-features = false

[dependencies.netlink-sys]
version = "0.8"

[dependencies.nix]
version = "0.30.0"
features = [
    "fs",
    "mount",
    "sched",
    "signal",
]
default-features = false

[dependencies.thiserror]
version = "1"

[dependencies.tokio]
version = "1.0.1"
features = ["rt"]
optional = true

[dev-dependencies.async-std]
version = "1.9.0"
features = ["attributes"]

[dev-dependencies.env_logger]
version = "0.11.0"

[dev-dependencies.ipnetwork]
version = "0.20.0"

[dev-dependencies.macaddr]
version = "1.0"

[dev-dependencies.tokio]
version = "1.0.1"
features = [
    "macros",
    "rt",
    "rt-multi-thread",
]
