0.2.3: Update dependencies

parent 71335925
This diff is collapsed.
[package]
name = "redox_installer"
version = "0.2.2"
version = "0.2.3"
description = "A Redox filesystem builder"
license = "MIT"
authors = ["Jeremy Soller <jackpot51@gmail.com>"]
......@@ -15,15 +15,15 @@ name = "redox_installer"
path = "src/lib.rs"
[dependencies]
arg_parser = "0.1"
argon2rs = { version = "0.2", default-features = false }
liner = "0.1"
libc = "0.2"
failure = "0.1"
rand = "0.3"
redox_pkgutils = "0.1"
redoxfs = "0.3"
serde = "0.8"
serde_derive = "0.8"
termion = "1.5.1"
toml = { version = "0.2", default-features = false, features = ["serde"] }
arg_parser = "0.1.0"
argon2rs = { version = "0.2.5", default-features = false }
liner = "0.4.4"
libc = "0.2.54"
failure = "0.1.5"
rand = "0.6.5"
redox_pkgutils = "0.1.2"
redoxfs = "0.3.3"
serde = "1.0.91"
serde_derive = "1.0.91"
termion = "1.5.2"
toml = "0.5.0"
......@@ -28,24 +28,12 @@ fn main() {
let mut config_data = String::new();
match config_file.read_to_string(&mut config_data) {
Ok(_) => {
let mut parser = toml::Parser::new(&config_data);
match parser.parse() {
Some(parsed) => {
let mut decoder = toml::Decoder::new(toml::Value::Table(parsed));
match serde::Deserialize::deserialize(&mut decoder) {
Ok(config) => {
config
},
Err(err) => {
writeln!(stderr, "installer: {}: failed to decode: {}", path, err).unwrap();
process::exit(1);
}
}
match toml::from_str(&config_data) {
Ok(config) => {
config
},
None => {
for error in parser.errors {
writeln!(stderr, "installer: {}: failed to parse: {}", path, error).unwrap();
}
Err(err) => {
writeln!(stderr, "installer: {}: failed to decode: {}", path, err).unwrap();
process::exit(1);
}
}
......
......@@ -18,7 +18,7 @@ use config::file::FileConfig;
use argon2rs::verifier::Encoded;
use argon2rs::{Argon2, Variant};
use failure::{Error, err_msg};
use rand::{OsRng, Rng};
use rand::{RngCore, rngs::OsRng};
use termion::input::TermRead;
use pkgutils::{Repo, Package};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment