Skip to content

Commit

Permalink
More robust file implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshua Wuyts <[email protected]>
  • Loading branch information
Stjepan Glavina authored and yoshuawuyts committed Sep 7, 2019
1 parent 98d9284 commit 17c95a3
Show file tree
Hide file tree
Showing 4 changed files with 466 additions and 457 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ unstable = []
async-task = "1.0.0"
cfg-if = "0.1.9"
crossbeam-channel = "0.3.9"
futures-channel-preview = "0.3.0-alpha.18"
futures-core-preview = "0.3.0-alpha.18"
futures-io-preview = "0.3.0-alpha.18"
futures-timer = "0.3.0"
futures-timer = "0.4.0"
lazy_static = "1.3.0"
log = { version = "0.4.8", features = ["kv_unstable"] }
memchr = "2.2.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/print-file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use async_std::io;
use async_std::prelude::*;
use async_std::task;

const LEN: usize = 4 * 1024 * 1024; // 4 Mb
const LEN: usize = 16 * 1024; // 16 Kb

fn main() -> io::Result<()> {
let path = args().nth(1).expect("missing path argument");
Expand Down
Loading

0 comments on commit 17c95a3

Please sign in to comment.