paritytech/parity-db

Compilation on Windows fails

Swader opened this issue · 1 comments

   Compiling parity-db v0.1.0
error[E0433]: failed to resolve: could not find `unix` in `os`
  --> C:\Users\Swader\.cargo\registry\src\github.com-1ecc6299db9ec823\parity-db-0.1.0\src\table.rs:18:14
   |
18 | use std::os::unix::fs::FileExt;
   |              ^^^^ could not find `unix` in `os`

error[E0599]: no method named `read_exact_at` found for struct `std::fs::File` in the current scope
   --> C:\Users\Swader\.cargo\registry\src\github.com-1ecc6299db9ec823\parity-db-0.1.0\src\table.rs:124:8
    |
124 |         file.read_exact_at(&mut header, 0)?;
    |              ^^^^^^^^^^^^^ method not found in `std::fs::File`

error[E0599]: no method named `read_exact_at` found for struct `std::fs::File` in the current scope
   --> C:\Users\Swader\.cargo\registry\src\github.com-1ecc6299db9ec823\parity-db-0.1.0\src\table.rs:148:16
    |
148 |         Ok(self.file.read_exact_at(buf, offset)?)
    |                      ^^^^^^^^^^^^^ method not found in `std::fs::File`

error[E0599]: no method named `write_all_at` found for struct `std::fs::File` in the current scope
   --> C:\Users\Swader\.cargo\registry\src\github.com-1ecc6299db9ec823\parity-db-0.1.0\src\table.rs:152:16
    |
152 |         Ok(self.file.write_all_at(buf, offset)?)
    |                      ^^^^^^^^^^^^ method not found in `std::fs::File`

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0433, E0599.
For more information about an error, try `rustc --explain E0433`.
error: could not compile `parity-db`.
warning: build failed, waiting for other jobs to finish...
error: build failed

Fixed in 0.1.1