random_access_file 0.4.0

A wrapper around the Read and Write traits that allow for simple or raw serialization
Build #88871 2018-03-05 21:22:14

Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.

# rustc version rustc 1.26.0-dev (5c1d29af0 2018-03-03)

# docs.rs version cratesfyi 0.5.0 (579f83b 2018-03-05)

# build log Updating registry `https://github.com/rust-lang/crates.io-index` Downloading random_access_file v0.4.0 Downloading cfile-rs v0.3.3 Compiling cfile-rs v0.3.3 Running `rustc --crate-name cfile_rs .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=ed104b16acaac35a -C extra-filename=-ed104b16acaac35a --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow` error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0) --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:33:5 | 33 | use std::ptr::Unique; | ^^^^^^^^^^^^^^^^ | = help: add #![feature(ptr_internals)] to the crate attributes to enable error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0) --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:71:15 | 71 | file_ptr: Unique<FILE>, | ^^^^^^^^^^^^ | = help: add #![feature(ptr_internals)] to the crate attributes to enable error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0) --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:122:43 | 122 | file_ptr: Unique::new(file_ptr), | ^^^^^^^^^^^ | = help: add #![feature(ptr_internals)] to the crate attributes to enable error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0) --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:173:37 | 173 | self.file_ptr = Unique::new(null_mut::<libc::FILE>()); | ^^^^^^^^^^^ | = help: add #![feature(ptr_internals)] to the crate attributes to enable error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0) --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:466:37 | 466 | self.file_ptr = Unique::new(null_mut::<libc::FILE>()); | ^^^^^^^^^^^ | = help: add #![feature(ptr_internals)] to the crate attributes to enable error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0) --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:122:43 | 122 | file_ptr: Unique::new(file_ptr), | ^^^^^^^^^^^ | = help: add #![feature(ptr_internals)] to the crate attributes to enable error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:122:43 | 122 | file_ptr: Unique::new(file_ptr), | ^^^^^^^^^^^^^^^^^^^^^ expected struct `std::ptr::Unique`, found enum `std::option::Option` | = note: expected type `std::ptr::Unique<_>` found type `std::option::Option<std::ptr::Unique<_>>` error[E0614]: type `std::ptr::Unique<libc::FILE>` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:170:17 | 170 | if !(*self.file_ptr).is_null() { | ^^^^^^^^^^^^^^^^ error[E0614]: type `std::ptr::Unique<libc::FILE>` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:171:40 | 171 | let res = libc::fclose(*self.file_ptr); | ^^^^^^^^^^^^^^ error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0) --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:173:37 | 173 | self.file_ptr = Unique::new(null_mut::<libc::FILE>()); | ^^^^^^^^^^^ | = help: add #![feature(ptr_internals)] to the crate attributes to enable error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:173:37 | 173 | self.file_ptr = Unique::new(null_mut::<libc::FILE>()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::ptr::Unique`, found enum `std::option::Option` | = note: expected type `std::ptr::Unique<_>` found type `std::option::Option<std::ptr::Unique<_>>` error[E0614]: type `std::ptr::Unique<libc::FILE>` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:187:16 | 187 | &mut (**self.file_ptr) | ^^^^^^^^^^^^^^ error[E0614]: type `std::ptr::Unique<libc::FILE>` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:195:35 | 195 | let pos = libc::ftell(*self.file_ptr); | ^^^^^^^^^^^^^^ error[E0614]: type `std::ptr::Unique<libc::FILE>` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:237:97 | 237 | let written_bytes = libc::fwrite(buf.as_ptr() as *const libc::c_void, 1, buf.len(), *self.file_ptr); | ^^^^^^^^^^^^^^ error[E0614]: type `std::ptr::Unique<libc::FILE>` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:265:97 | 265 | let written_bytes = libc::fwrite(buf.as_ptr() as *const libc::c_void, 1, buf.len(), *self.file_ptr); | ^^^^^^^^^^^^^^ error[E0614]: type `std::ptr::Unique<libc::FILE>` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:297:39 | 297 | let result = libc::fflush(*self.file_ptr); | ^^^^^^^^^^^^^^ error[E0614]: type `std::ptr::Unique<libc::FILE>` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:378:87 | 378 | let result = libc::fread(buf.as_ptr() as *mut libc::c_void, 1, buf.len(), *self.file_ptr); | ^^^^^^^^^^^^^^ error[E0614]: type `std::ptr::Unique<libc::FILE>` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:408:87 | 408 | let result = libc::fread(buf.as_ptr() as *mut libc::c_void, 1, buf.len(), *self.file_ptr); | ^^^^^^^^^^^^^^ error[E0614]: type `std::ptr::Unique<libc::FILE>` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:413:31 | 413 | if libc::feof(*self.file_ptr) != 0 { | ^^^^^^^^^^^^^^ error[E0614]: type `std::ptr::Unique<libc::FILE>` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:444:33 | 444 | libc::fseek(*self.file_ptr, from as libc::c_long, libc::SEEK_SET), | ^^^^^^^^^^^^^^ error[E0614]: type `std::ptr::Unique<libc::FILE>` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:446:33 | 446 | libc::fseek(*self.file_ptr, from as libc::c_long, libc::SEEK_END), | ^^^^^^^^^^^^^^ error[E0614]: type `std::ptr::Unique<libc::FILE>` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:448:33 | 448 | libc::fseek(*self.file_ptr, delta as libc::c_long, libc::SEEK_CUR) | ^^^^^^^^^^^^^^ error[E0614]: type `std::ptr::Unique<libc::FILE>` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:463:17 | 463 | if !(*self.file_ptr).is_null() { | ^^^^^^^^^^^^^^^^ error[E0614]: type `std::ptr::Unique<libc::FILE>` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:464:40 | 464 | let res = libc::fclose(*self.file_ptr); | ^^^^^^^^^^^^^^ error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0) --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:466:37 | 466 | self.file_ptr = Unique::new(null_mut::<libc::FILE>()); | ^^^^^^^^^^^ | = help: add #![feature(ptr_internals)] to the crate attributes to enable error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs:466:37 | 466 | self.file_ptr = Unique::new(null_mut::<libc::FILE>()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::ptr::Unique`, found enum `std::option::Option` | = note: expected type `std::ptr::Unique<_>` found type `std::option::Option<std::ptr::Unique<_>>` error: aborting due to 26 previous errors You've got a few errors: E0308, E0614, E0658 If you want more information on an error, try using "rustc --explain E0308" thread 'main' panicked at 'Error( CargoError( ChainedError { error: Could not compile `cfile-rs`., cause: process didn't exit successfully: `rustc --crate-name cfile_rs .cargo/registry/src/github.com-1ecc6299db9ec823/cfile-rs-0.3.3/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=ed104b16acaac35a -C extra-filename=-ed104b16acaac35a --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow` (exit code: 101) } ), State { next_error: None, backtrace: None } )', src/bin/cratesfyi.rs:142:13 note: Run with `RUST_BACKTRACE=1` for a backtrace.