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

Unix only #25

Open
leontoeides opened this issue Sep 15, 2020 · 0 comments
Open

Unix only #25

leontoeides opened this issue Sep 15, 2020 · 0 comments

Comments

@leontoeides
Copy link

I was looking forward to using this crate but it appears to be Unix only.

error[E0433]: failed to resolve: could not find unix in os
--> C:\Users\leontoeides.cargo\registry\src\github.com-1ecc6299db9ec823\shardio-0.7.3\src\lib.rs:84:14
|
84 | use std::os::unix::fs::FileExt;
| ^^^^ could not find unix in os

error[E0599]: no method named write_at found for struct std::fs::File in the current scope
--> C:\Users\leontoeides.cargo\registry\src\github.com-1ecc6299db9ec823\shardio-0.7.3\src\lib.rs:577:14
|
577 | .write_at(&self.compress_buffer, cur_offset as u64)?;
| ^^^^^^^^ method not found in std::fs::File

error[E0599]: no method named write_at found for struct std::fs::File in the current scope
--> C:\Users\leontoeides.cargo\registry\src\github.com-1ecc6299db9ec823\shardio-0.7.3\src\lib.rs:593:14
|
593 | .write_at(buf.as_slice(), index_block_position as u64)?;
| ^^^^^^^^ method not found in std::fs::File

error[E0599]: no method named read_at found for reference &'a std::fs::File in the current scope
--> C:\Users\leontoeides.cargo\registry\src\github.com-1ecc6299db9ec823\shardio-0.7.3\src\lib.rs:869:37
|
869 | let actual_read = self.file.read_at(buf_slice, self.offset as u64)?;
| ^^^^^^^ method not found in &'a 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 shardio.

See also??

std::os::windows::fs::FileExt::seek_read(&self, buf: &mut [u8], offset: u64) -> Result
std::os::windows::fs::FileExt::seek_write(&self, buf: &[u8], offset: u64) -> Result

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

1 participant