From 69e0bae75e3628e111751c30566b3498f6e3d4a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 18 Sep 2019 14:41:37 +0200 Subject: [PATCH] chore: Bump dependencies --- meilidb-core/Cargo.toml | 2 +- meilidb/Cargo.toml | 12 ++++++------ meilidb/examples/create-database.rs | 3 ++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/meilidb-core/Cargo.toml b/meilidb-core/Cargo.toml index 159fdbfcf..fce1ecdc8 100644 --- a/meilidb-core/Cargo.toml +++ b/meilidb-core/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] byteorder = "1.3.1" deunicode = "1.0.0" -hashbrown = "0.2.2" +hashbrown = "0.6.0" lazy_static = "1.2.0" log = "0.4.6" meilidb-tokenizer = { path = "../meilidb-tokenizer", version = "0.1.0" } diff --git a/meilidb/Cargo.toml b/meilidb/Cargo.toml index c4a4a07e9..00c33f091 100644 --- a/meilidb/Cargo.toml +++ b/meilidb/Cargo.toml @@ -14,16 +14,16 @@ csv = "1.0.7" diskus = "0.5.0" env_logger = "0.6.1" indexmap = { version = "1.1.0", features = ["serde-1"] } -jemallocator = "0.1.9" +jemallocator = "0.3.2" meilidb-core = { path = "../meilidb-core", version = "0.1.0" } -quickcheck = "0.8.2" -rand = "0.6.5" -rand_xorshift = "0.1.1" +quickcheck = "0.9.0" +rand = "0.7.2" +rand_xorshift = "0.2.0" rustyline = { version = "5.0.0", default-features = false } serde = { version = "1.0.91" , features = ["derive"] } serde_json = "1.0.39" -structopt = "0.2.15" -sysinfo = "0.8.4" +structopt = "0.3.2" +sysinfo = "0.9.5" tempfile = "3.0.7" termcolor = "1.0.4" toml = "0.5.3" diff --git a/meilidb/examples/create-database.rs b/meilidb/examples/create-database.rs index c9326b6c1..1311000d9 100644 --- a/meilidb/examples/create-database.rs +++ b/meilidb/examples/create-database.rs @@ -154,7 +154,8 @@ fn index( // write stats let directory_size = Walk::new(&[database_path.to_owned()], 4).run(); system.refresh_all(); - let memory = system.get_process(sysinfo::get_current_pid()).unwrap().memory(); // in kb + let pid = sysinfo::get_current_pid()?; + let memory = system.get_process(pid).unwrap().memory(); // in kb wtr.write_record(&[i.to_string(), directory_size.to_string(), memory.to_string()])?; wtr.flush()?; }