Skip to content
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

build fails on Windows and MacOS #14

Open
hanckmann opened this issue Oct 17, 2020 · 1 comment
Open

build fails on Windows and MacOS #14

hanckmann opened this issue Oct 17, 2020 · 1 comment

Comments

@hanckmann
Copy link

It results (on MacOS) in the following error:

error[E0599]: no function or associated item named `new` found for struct `yauuid::Node` in the current scope
  --> src/main.rs:66:51
   |
66 |                          let node = yauuid::Node::new("lo");
   |                                                   ^^^ function or associated item not found in `yauuid::Node`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0599`.

in my cargo.toml

[dependencies]
yauuid = "0.2.1"

I am not sure what is going on or how to fix this (I am quite new to Rust).
If you need more details or info... let me know.

@condy0919
Copy link
Owner

https://github.com/condy0919/uuid/blob/master/src/node.rs#L29-L30

It reads /sys directory to get the address of supplied interface. It's linux only now, but feel free to raise a PR to support MacOS and windows. :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants