Comments (4)
The policy of this crate is that it's not a breaking change, and the newer version require 1.32.0 or greater.
from filetime.
I get this error on 1.36.0 too.
Compiling filetime v0.2.6
error: cannot find macro `__cfg_if_items!` in this scope
--> /home/arian/.cargo/registry/src/github.com-1ecc6299db9ec823/filetime-0.2.6/src/lib.rs:43:1
|
43 | / cfg_if::cfg_if! {
44 | | if #[cfg(target_os = "redox")] {
45 | | #[path = "redox.rs"]
46 | | mod imp;
... |
56 | | }
57 | | }
| |_^
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error[E0433]: failed to resolve: use of undeclared type or module `imp`
--> /home/arian/.cargo/registry/src/github.com-1ecc6299db9ec823/filetime-0.2.6/src/lib.rs:116:9
|
116 | imp::from_last_modification_time(meta).emulate_second_only_system()
| ^^^ use of undeclared type or module `imp`
error[E0433]: failed to resolve: use of undeclared type or module `imp`
--> /home/arian/.cargo/registry/src/github.com-1ecc6299db9ec823/filetime-0.2.6/src/lib.rs:125:9
|
125 | imp::from_last_access_time(meta).emulate_second_only_system()
| ^^^ use of undeclared type or module `imp`
error[E0433]: failed to resolve: use of undeclared type or module `imp`
--> /home/arian/.cargo/registry/src/github.com-1ecc6299db9ec823/filetime-0.2.6/src/lib.rs:136:9
|
136 | imp::from_creation_time(meta).map(|x| x.emulate_second_only_system())
| ^^^ use of undeclared type or module `imp`
error[E0433]: failed to resolve: use of undeclared type or module `imp`
--> /home/arian/.cargo/registry/src/github.com-1ecc6299db9ec823/filetime-0.2.6/src/lib.rs:220:5
|
220 | imp::set_file_times(p.as_ref(), atime, mtime)
| ^^^ use of undeclared type or module `imp`
error[E0433]: failed to resolve: use of undeclared type or module `imp`
--> /home/arian/.cargo/registry/src/github.com-1ecc6299db9ec823/filetime-0.2.6/src/lib.rs:234:5
|
234 | imp::set_file_handle_times(f, atime, mtime)
| ^^^ use of undeclared type or module `imp`
error[E0433]: failed to resolve: use of undeclared type or module `imp`
--> /home/arian/.cargo/registry/src/github.com-1ecc6299db9ec823/filetime-0.2.6/src/lib.rs:246:5
|
246 | imp::set_symlink_file_times(p.as_ref(), atime, mtime)
| ^^^ use of undeclared type or module `imp`
error[E0433]: failed to resolve: use of undeclared type or module `imp`
--> /home/arian/.cargo/registry/src/github.com-1ecc6299db9ec823/filetime-0.2.6/src/lib.rs:263:5
|
263 | imp::set_file_mtime(p.as_ref(), mtime)
| ^^^ use of undeclared type or module `imp`
error[E0433]: failed to resolve: use of undeclared type or module `imp`
--> /home/arian/.cargo/registry/src/github.com-1ecc6299db9ec823/filetime-0.2.6/src/lib.rs:280:5
|
280 | imp::set_file_atime(p.as_ref(), atime)
| ^^^ use of undeclared type or module `imp`
error: aborting due to 9 previous errors
For more information about this error, try `rustc --explain E0433`.
error: Could not compile `filetime`.
warning: build failed, waiting for other jobs to finish...
error: build failed
from filetime.
I have some projects for which this compiles and for others for which it doesn't.
The only difference I have found so far is that some projects have decided to choose cfg-if 0.1.9
as a dependency (does work)
and others have chosen to pick cfg-if 0.1.4
(doesn't work)
So apparently there was a breaking change between these two versions?
I suggest adding a more constrained version bound on cfg-if
because = 0.1
is too loose.
from filetime.
Deleting my Cargo.lock
file made it pick 0.1.9
this time. Seems to work now!
from filetime.
Related Issues (20)
- `set_symlink_file_times` doesn't change atime but causes it to become UTIME_NOW on Linux
- Compiling filetime in AIX fails HOT 2
- Support setting filetimes on open files HOT 3
- Use utimensat on FreeBSD HOT 1
- Fails to set Modified Time on FAT32 and exFAT HOT 5
- Build failure on OpenBSD 6.4 due to missing libc::lutimes HOT 4
- Parsing fails due to new "Edition" field HOT 1
- Bump minor version HOT 2
- libc::futimens is not available on Android HOT 1
- build broken for android
- Proposal: ability to set btime HOT 3
- Add option to create FileTime from custom date
- Creation time on Linux is None HOT 5
- Why is `11644473600` second subtracted in the `unix_second` fuction calculation? HOT 2
- Separate setting atime and mtime for symlinks HOT 1
- Enables this crate to modify the file creation time on Windows.
- Windows ctime should be set to `mtime` if `mtime < ctime`
- Make `set_times` public
- release version bumping the `redox_syscall` dependency HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filetime.