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

Unable to build in stable (beta) channel #17

Closed
callahad opened this issue Apr 4, 2015 · 3 comments
Closed

Unable to build in stable (beta) channel #17

callahad opened this issue Apr 4, 2015 · 3 comments

Comments

@callahad
Copy link

callahad commented Apr 4, 2015

Per src/lib.rs#L11:

#![feature(fs, fs_time, fs_ext)]

Things that fail without the feature flags:

$ cargo build
   Compiling tar v0.2.9 (file:///Users/dan/Projects/Tracking/tar-rs)
src/lib.rs:177:22: 177:41 error: use of unstable library feature 'fs': a more granual ability to set specific permissions may be exposed on the Permissions structure itself and this method may not always exist
src/lib.rs:177                 try!(fs::set_permissions(&dst, perm));
                                    ^~~~~~~~~~~~~~~~~~~
<std macros>:1:1: 6:48 note: in expansion of try!
src/lib.rs:177:17: 177:55 note: expansion site
src/lib.rs:177:41: 177:41 help: add #![feature(fs)] to the crate attributes to enable
<std macros>:1:1: 6:48 note: in expansion of try!
src/lib.rs:177:17: 177:55 note: expansion site
src/lib.rs:185:18: 185:32 error: use of unstable library feature 'fs_ext': may want a more useful mode abstraction
src/lib.rs:185             perm.set_mode(mode);
                                ^~~~~~~~~~~~~~
src/lib.rs:185:32: 185:32 help: add #![feature(fs_ext)] to the crate attributes to enable
src/lib.rs:307:39: 307:49 error: use of unstable library feature 'fs_time': the return type of u64 is not quite appropriate for this method and may change if the standard library gains a type to represent a moment in time
src/lib.rs:307         octal(&mut header.mtime, stat.modified() / 1000);
                                                     ^~~~~~~~~~
src/lib.rs:307:49: 307:49 help: add #![feature(fs_time)] to the crate attributes to enable
src/lib.rs:360:32: 360:38 error: use of unstable library feature 'fs_ext': may want a more useful mode abstraction
src/lib.rs:360             meta.permissions().mode()
                                              ^~~~~~
src/lib.rs:360:38: 360:38 help: add #![feature(fs_ext)] to the crate attributes to enable
error: aborting due to 4 previous errors
Could not compile `tar`.
@alexcrichton
Copy link
Owner

This is correct! Unfortunately these are all required for tarball creation/unpacking to work properly, so this library will have to wait for these apis to stabilize to run on beta. I hope to write an RFC quite soon about these apis though to get them onto the stable channel ASAP!

@indykish
Copy link

@alexcrichton Is there a fix for this problem ? The cargo itself can't be compiled as it depends on tar

@alexcrichton
Copy link
Owner

@indykish unfortunately not yet, this library will be able to compile on stable once rust-lang/rfcs#1044 lands. Cargo is also unfortunately blocked on stable by catch_panic in git2-rs

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

3 participants