-
Notifications
You must be signed in to change notification settings - Fork 18
Copy netlink-packet-utils code to netlink-packet-core #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
b2f7247
to
90b0556
Compare
Signed-off-by: Enrique Llorente <[email protected]>
90b0556
to
7f142c4
Compare
src/lib.rs
Outdated
pub mod nla; | ||
pub use self::nla::*; | ||
|
||
pub mod parsers; | ||
pub use self::parsers::*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are breaking stuff, let's not expose the module path to public allowing us to re-organize the code in the future. Try expose everything as top level data type or function and don't use ::*
.
pub use self::nla::{NlaBuffer, DefaultNla, NlaIterator};
pub use self::parsers::{parse_u8, ...};
} | ||
|
||
#[macro_export(local_inner_macros)] | ||
macro_rules! buffer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rust document said we should not use local_inner_macros
.
We actually only use this buffer!
macro in other crates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I should just use "cratre" right ?
UPDATE: Ahh ok just leave #[macro_export]
Cargo.toml
Outdated
@@ -14,7 +14,6 @@ description = "netlink packet types" | |||
[dependencies] | |||
anyhow = "1.0.31" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This crate is not required anymore.
Signed-off-by: Enrique Llorente <[email protected]>
Signed-off-by: Enrique Llorente <[email protected]>
Signed-off-by: Enrique Llorente <[email protected]>
Signed-off-by: Enrique Llorente <[email protected]>
7f142c4
to
e3b38a9
Compare
Signed-off-by: Enrique Llorente <[email protected]>
e3b38a9
to
fa25183
Compare
This PR add the functionalit at netlink-packet-util to this repository so we can deprecate that repo making dependencies easier to handle.