sys-info-rs icon indicating copy to clipboard operation
sys-info-rs copied to clipboard

0.7.0 fails to build for iOS target

Open roustem opened this issue 4 years ago • 1 comments

 error[E0308]: mismatched types
    --> /Users/administrator/.cargo/registry/src/github.com-1ecc6299db9ec823/sys-info-0.7.0/lib.rs:618:22
     |
 618 | pub fn boottime() -> Result<timeval, Error> {
     |        --------      ^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found `()`
     |        |
     |        implicitly returns `()` as its body has no tail or `return` expression
     |
     = note:   expected enum `std::result::Result<libc::timeval, Error>`
             found unit type `()`
 error: aborting due to previous error
 For more information about this error, try `rustc --explain E0308`.
 error: could not compile `sys-info`.
 To learn more, run the command again with --verbose.
 warning: build failed, waiting for other jobs to finish...
 error: build failed
 make: *** [apple-ios-x86_64] Error 101

roustem avatar Jun 19 '20 21:06 roustem

@roustem It has not supported for IOS yet.

FillZpp avatar Jun 22 '20 03:06 FillZpp