From 7e67524615a7edabf54f436b85bf6dc8998b35ab Mon Sep 17 00:00:00 2001 From: Michael Richardson Date: Tue, 28 Dec 2021 15:53:27 -0500 Subject: [PATCH] rename some examples to get unique names as per required by https://github.com/rust-lang/cargo/issues/6313 --- audit/examples/{dump_rules.rs => dump_audit_rules.rs} | 0 genetlink/Cargo.toml | 2 +- .../{list_generic_family.rs => list_genetlink_family.rs} | 0 netlink-packet-route/Cargo.toml | 2 +- .../examples/{dump_links.rs => dump_packet_links.rs} | 0 netlink-proto/Cargo.toml | 2 +- .../examples/{audit_events.rs => audit_netlink_events.rs} | 0 7 files changed, 3 insertions(+), 3 deletions(-) rename audit/examples/{dump_rules.rs => dump_audit_rules.rs} (100%) rename genetlink/examples/{list_generic_family.rs => list_genetlink_family.rs} (100%) rename netlink-packet-route/examples/{dump_links.rs => dump_packet_links.rs} (100%) rename netlink-proto/examples/{audit_events.rs => audit_netlink_events.rs} (100%) diff --git a/audit/examples/dump_rules.rs b/audit/examples/dump_audit_rules.rs similarity index 100% rename from audit/examples/dump_rules.rs rename to audit/examples/dump_audit_rules.rs diff --git a/genetlink/Cargo.toml b/genetlink/Cargo.toml index 461a108a..5792225b 100644 --- a/genetlink/Cargo.toml +++ b/genetlink/Cargo.toml @@ -30,7 +30,7 @@ anyhow = "1.0.42" tokio = { version = "1.9.0", features = ["rt", "rt-multi-thread", "macros"] } [[example]] -name = "list_generic_family" +name = "list_genetlink_family" required-features = ["tokio_socket"] [[example]] diff --git a/genetlink/examples/list_generic_family.rs b/genetlink/examples/list_genetlink_family.rs similarity index 100% rename from genetlink/examples/list_generic_family.rs rename to genetlink/examples/list_genetlink_family.rs diff --git a/netlink-packet-route/Cargo.toml b/netlink-packet-route/Cargo.toml index 12c06411..a4e318ba 100644 --- a/netlink-packet-route/Cargo.toml +++ b/netlink-packet-route/Cargo.toml @@ -23,7 +23,7 @@ netlink-packet-utils = "0.4" bitflags = "1.2.1" [[example]] -name = "dump_links" +name = "dump_packet_links" [dev-dependencies] criterion = "0.3.0" diff --git a/netlink-packet-route/examples/dump_links.rs b/netlink-packet-route/examples/dump_packet_links.rs similarity index 100% rename from netlink-packet-route/examples/dump_links.rs rename to netlink-packet-route/examples/dump_packet_links.rs diff --git a/netlink-proto/Cargo.toml b/netlink-proto/Cargo.toml index f8d4f3aa..f572d852 100644 --- a/netlink-proto/Cargo.toml +++ b/netlink-proto/Cargo.toml @@ -39,4 +39,4 @@ name = "dump_links_async" required-features = ["smol_socket"] [[example]] -name = "audit_events" +name = "audit_netlink_events" diff --git a/netlink-proto/examples/audit_events.rs b/netlink-proto/examples/audit_netlink_events.rs similarity index 100% rename from netlink-proto/examples/audit_events.rs rename to netlink-proto/examples/audit_netlink_events.rs