Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Error: use of unstable library feature 'udp_extras': available through the net2 crate on crates.io #223

Closed
rossmuir opened this issue Jul 31, 2015 · 2 comments
Labels

Comments

@rossmuir
Copy link
Contributor

Unable to compile crust - rustc 1.3.0-nightly (4d52d7c85 2015-07-30)

Compiling crust v0.2.1 (file:///home/user/MaidSafe-Testing/maidsafe_rust/crust)
src/beacon.rs:198:17: 198:36 error: use of unstable library feature 'udp_extras': available through the `net2` crate on crates.io
src/beacon.rs:198     try!(socket.set_broadcast(true));
                                  ^~~~~~~~~~~~~~~~~~~
<std macros>:1:1: 6:48 note: in expansion of try!
src/beacon.rs:198:5: 198:38 note: expansion site
src/beacon.rs:198:17: 198:36 help: add #![feature(udp_extras)] to the crate attributes to enable
src/lib.rs:33:25: 33:28 error: unused or unknown feature
src/lib.rs:33 #![feature(ip_addr, ip, udp, arc_weak, socket_timeout, duration, negate_unsigned)]
                                      ^~~
src/lib.rs:27:29: 27:44 note: lint level defined here
src/lib.rs:27         unused_comparisons, unused_features, unused_parens, while_true)]
                                          ^~~~~~~~~~~~~~~
src/beacon.rs:198:17: 198:36 error: use of deprecated item: available through the `net2` crate on crates.io
src/beacon.rs:198     try!(socket.set_broadcast(true));
                                  ^~~~~~~~~~~~~~~~~~~
<std macros>:1:1: 6:48 note: in expansion of try!
src/beacon.rs:198:5: 198:38 note: expansion site
src/lib.rs:23:20: 23:30 note: lint level defined here
src/lib.rs:23 #![deny(bad_style, deprecated, drop_with_repr_extern, improper_ctypes, non_shorthand_field_patterns,
                                 ^~~~~~~~~~
error: aborting due to 3 previous errors
Could not compile `crust`.

To learn more, run the command again with --verbose.
   Compiling crust v0.2.1 (file:///home/user/MaidSafe-Testing/maidsafe_rust/crust)
src/beacon.rs:198:17: 198:36 error: use of unstable library feature 'udp_extras': available through the `net2` crate on crates.io
src/beacon.rs:198     try!(socket.set_broadcast(true));
                                  ^~~~~~~~~~~~~~~~~~~
<std macros>:1:1: 6:48 note: in expansion of try!
src/beacon.rs:198:5: 198:38 note: expansion site
src/beacon.rs:198:17: 198:36 help: add #![feature(udp_extras)] to the crate attributes to enable
src/lib.rs:33:25: 33:28 error: unused or unknown feature
src/lib.rs:33 #![feature(ip_addr, ip, udp, arc_weak, socket_timeout, duration, negate_unsigned)]
                                      ^~~
src/lib.rs:27:29: 27:44 note: lint level defined here
src/lib.rs:27         unused_comparisons, unused_features, unused_parens, while_true)]
                                          ^~~~~~~~~~~~~~~
src/beacon.rs:198:17: 198:36 error: use of deprecated item: available through the `net2` crate on crates.io
src/beacon.rs:198     try!(socket.set_broadcast(true));
                                  ^~~~~~~~~~~~~~~~~~~
<std macros>:1:1: 6:48 note: in expansion of try!
src/beacon.rs:198:5: 198:38 note: expansion site
src/lib.rs:23:20: 23:30 note: lint level defined here
src/lib.rs:23 #![deny(bad_style, deprecated, drop_with_repr_extern, improper_ctypes, non_shorthand_field_patterns,
                                 ^~~~~~~~~~
error: aborting due to 3 previous errors
Build failed, waiting for other jobs to finish...
src/beacon.rs:198:17: 198:36 error: use of unstable library feature 'udp_extras': available through the `net2` crate on crates.io
src/beacon.rs:198     try!(socket.set_broadcast(true));
                                  ^~~~~~~~~~~~~~~~~~~
<std macros>:1:1: 6:48 note: in expansion of try!
src/beacon.rs:198:5: 198:38 note: expansion site
src/beacon.rs:198:17: 198:36 help: add #![feature(udp_extras)] to the crate attributes to enable
src/lib.rs:33:25: 33:28 error: unused or unknown feature
src/lib.rs:33 #![feature(ip_addr, ip, udp, arc_weak, socket_timeout, duration, negate_unsigned)]
                                      ^~~
src/lib.rs:27:29: 27:44 note: lint level defined here
src/lib.rs:27         unused_comparisons, unused_features, unused_parens, while_true)]
                                          ^~~~~~~~~~~~~~~
src/beacon.rs:198:17: 198:36 error: use of deprecated item: available through the `net2` crate on crates.io
src/beacon.rs:198     try!(socket.set_broadcast(true));
                                  ^~~~~~~~~~~~~~~~~~~
<std macros>:1:1: 6:48 note: in expansion of try!
src/beacon.rs:198:5: 198:38 note: expansion site
src/lib.rs:23:20: 23:30 note: lint level defined here
src/lib.rs:23 #![deny(bad_style, deprecated, drop_with_repr_extern, improper_ctypes, non_shorthand_field_patterns,
                                 ^~~~~~~~~~
error: aborting due to 3 previous errors
Could not compile `crust`.

@rossmuir rossmuir added the bug label Jul 31, 2015
@mmoadeli mmoadeli self-assigned this Jul 31, 2015
@benjaminbollen
Copy link
Contributor

@mmoadeli can you open your (WIP) work on this as a PR? cheers !

@rossmuir
Copy link
Contributor Author

rossmuir commented Aug 3, 2015

Permanent fix issue raised - closing this open issue

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

No branches or pull requests

3 participants