Update dependency: toml: 0.4 -> 0.5
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
b4e25df98a
commit
1482f70320
50 changed files with 63 additions and 63 deletions
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
url = "1.2"
|
url = "1.2"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ homepage = "http://imag-pim.org"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
indicatif = "0.9"
|
indicatif = "0.9"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
version = "3"
|
version = "3"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
|
|
||||||
libimagrt = { version = "0.10.0", path = "../../../lib/core/libimagrt" }
|
libimagrt = { version = "0.10.0", path = "../../../lib/core/libimagrt" }
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
url = "1.2"
|
url = "1.2"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
version = "2.0.1"
|
version = "2.0.1"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
filters = "0.3"
|
filters = "0.3"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
|
@ -23,7 +23,7 @@ maintenance = { status = "actively-developed" }
|
||||||
filters = "0.3"
|
filters = "0.3"
|
||||||
nom = "3.2"
|
nom = "3.2"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
is-match = "0.1"
|
is-match = "0.1"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
|
@ -29,5 +29,5 @@ default-features = false
|
||||||
features = ["color", "suggestions", "wrap_help"]
|
features = ["color", "suggestions", "wrap_help"]
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
url = "1.5"
|
url = "1.5"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
prettytable-rs = "0.8"
|
prettytable-rs = "0.8"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
||||||
libimagstore = { version = "0.10.0", path = "../../../lib/core/libimagstore", features = ["verify"] }
|
libimagstore = { version = "0.10.0", path = "../../../lib/core/libimagstore", features = ["verify"] }
|
||||||
|
|
|
@ -18,11 +18,11 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
use std::collections::btree_map::{BTreeMap, Entry};
|
|
||||||
use std::str::Split;
|
use std::str::Split;
|
||||||
|
|
||||||
use clap::ArgMatches;
|
use clap::ArgMatches;
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
|
use toml::map::{Map, Entry};
|
||||||
|
|
||||||
use libimagutil::key_value_split::IntoKeyValue;
|
use libimagutil::key_value_split::IntoKeyValue;
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ pub fn build_toml_header(matches: &ArgMatches, mut header: Value) -> Value {
|
||||||
fn insert_key_into<'a>(current: String,
|
fn insert_key_into<'a>(current: String,
|
||||||
rest_path: &mut Split<char>,
|
rest_path: &mut Split<char>,
|
||||||
value: Cow<'a, str>,
|
value: Cow<'a, str>,
|
||||||
map: &mut BTreeMap<String, Value>) {
|
map: &mut Map<String, Value>) {
|
||||||
let next = rest_path.next();
|
let next = rest_path.next();
|
||||||
|
|
||||||
if next.is_none() {
|
if next.is_none() {
|
||||||
|
@ -73,7 +73,7 @@ fn insert_key_into<'a>(current: String,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Entry::Vacant(v) => { v.insert(Value::Table( {
|
Entry::Vacant(v) => { v.insert(Value::Table( {
|
||||||
let mut submap = BTreeMap::new();
|
let mut submap = Map::new();
|
||||||
insert_key_into(String::from(next.unwrap()), rest_path, value, &mut submap);
|
insert_key_into(String::from(next.unwrap()), rest_path, value, &mut submap);
|
||||||
debug!("Inserting submap = {:?}", submap);
|
debug!("Inserting submap = {:?}", submap);
|
||||||
submap }));
|
submap }));
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
||||||
libimagstore = { version = "0.10.0", path = "../../../lib/core/libimagstore" }
|
libimagstore = { version = "0.10.0", path = "../../../lib/core/libimagstore" }
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
handlebars = "1.0"
|
handlebars = "1.0"
|
||||||
tempfile = "3"
|
tempfile = "3"
|
||||||
|
|
|
@ -32,7 +32,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
walkdir = "2"
|
walkdir = "2"
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
|
|
||||||
libimagerror = { version = "0.10.0", path = "../../../lib/core/libimagerror" }
|
libimagerror = { version = "0.10.0", path = "../../../lib/core/libimagerror" }
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
vobject = "0.7"
|
vobject = "0.7"
|
||||||
handlebars = "1.0"
|
handlebars = "1.0"
|
||||||
walkdir = "2"
|
walkdir = "2"
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
kairos = "0.3"
|
kairos = "0.3"
|
||||||
prettytable-rs = "0.8"
|
prettytable-rs = "0.8"
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
is-match = "0.1"
|
is-match = "0.1"
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
is-match = "0.1"
|
is-match = "0.1"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
|
@ -16,7 +16,7 @@ homepage = "http://imag-pim.org"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = ">=2.17"
|
clap = ">=2.17"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
is-match = "0.1"
|
is-match = "0.1"
|
||||||
regex = "1"
|
regex = "1"
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
env_logger = "0.5"
|
env_logger = "0.5"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
xdg-basedir = "1.0"
|
xdg-basedir = "1.0"
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
ansi_term = "0.11"
|
ansi_term = "0.11"
|
||||||
|
|
|
@ -24,7 +24,7 @@ glob = "0.2.11"
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
regex = "1"
|
regex = "1"
|
||||||
semver = "0.9"
|
semver = "0.9"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
walkdir = "2"
|
walkdir = "2"
|
||||||
is-match = "0.1"
|
is-match = "0.1"
|
||||||
serde = "1"
|
serde = "1"
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
vobject = "0.7"
|
vobject = "0.7"
|
||||||
uuid = "0.7"
|
uuid = "0.7"
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
kairos = "0.3"
|
kairos = "0.3"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
|
@ -20,7 +20,7 @@ is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
|
||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
mailparse = "0.6.5"
|
mailparse = "0.6.5"
|
||||||
filters = "0.3"
|
filters = "0.3"
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
filters = "0.3"
|
filters = "0.3"
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
lazy_static = "1.2"
|
lazy_static = "1.2"
|
||||||
is-match = "0.1"
|
is-match = "0.1"
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
task-hookrs = "0.6.0"
|
task-hookrs = "0.6.0"
|
||||||
uuid = "0.7"
|
uuid = "0.7"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
//
|
//
|
||||||
|
|
||||||
use std::collections::BTreeMap;
|
|
||||||
use std::io::BufRead;
|
use std::io::BufRead;
|
||||||
use std::result::Result as RResult;
|
use std::result::Result as RResult;
|
||||||
|
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
|
use toml::map::Map;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use task_hookrs::task::Task as TTask;
|
use task_hookrs::task::Task as TTask;
|
||||||
|
@ -167,7 +167,7 @@ impl<'a> TaskStore<'a> for Store {
|
||||||
{
|
{
|
||||||
let hdr = fle.get_header_mut();
|
let hdr = fle.get_header_mut();
|
||||||
if hdr.read("todo")?.is_none() {
|
if hdr.read("todo")?.is_none() {
|
||||||
hdr.set("todo", Value::Table(BTreeMap::new()))?;
|
hdr.set("todo", Value::Table(Map::new()))?;
|
||||||
}
|
}
|
||||||
|
|
||||||
hdr.set("todo.uuid", Value::String(format!("{}",uuid)))?;
|
hdr.set("todo.uuid", Value::String(format!("{}",uuid)))?;
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
filters = "0.3"
|
filters = "0.3"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
lazy_static = "1.2"
|
lazy_static = "1.2"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
failure_derive = "0.1"
|
failure_derive = "0.1"
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
||||||
libimagerror = { version = "0.10.0", path = "../../../lib/core/libimagerror" }
|
libimagerror = { version = "0.10.0", path = "../../../lib/core/libimagerror" }
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
error-chain = "0.12"
|
error-chain = "0.12"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
||||||
libimagerror = { version = "0.10.0", path = "../../../lib/core/libimagerror" }
|
libimagerror = { version = "0.10.0", path = "../../../lib/core/libimagerror" }
|
||||||
|
|
|
@ -25,7 +25,7 @@ itertools = "0.7"
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
regex = "1"
|
regex = "1"
|
||||||
semver = "0.9"
|
semver = "0.9"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
failure_derive = "0.1"
|
failure_derive = "0.1"
|
||||||
|
|
|
@ -20,7 +20,7 @@ is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
|
||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
serde_derive = "1"
|
serde_derive = "1"
|
||||||
serde = "1"
|
serde = "1"
|
||||||
|
|
|
@ -17,12 +17,12 @@
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
//
|
//
|
||||||
|
|
||||||
use std::collections::BTreeMap;
|
|
||||||
use std::fmt::Display;
|
use std::fmt::Display;
|
||||||
use std::fmt::Formatter;
|
use std::fmt::Formatter;
|
||||||
use std::fmt::Result as FmtResult;
|
use std::fmt::Result as FmtResult;
|
||||||
|
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
|
use toml::map::Map;
|
||||||
use failure::Fallible as Result;
|
use failure::Fallible as Result;
|
||||||
use failure::err_msg;
|
use failure::err_msg;
|
||||||
use failure::Error;
|
use failure::Error;
|
||||||
|
@ -68,7 +68,7 @@ impl GPSValue {
|
||||||
impl Into<Value> for GPSValue {
|
impl Into<Value> for GPSValue {
|
||||||
|
|
||||||
fn into(self) -> Value {
|
fn into(self) -> Value {
|
||||||
let mut map = BTreeMap::new();
|
let mut map = Map::new();
|
||||||
let _ = map.insert("degree".to_owned(), Value::Integer(self.degree));
|
let _ = map.insert("degree".to_owned(), Value::Integer(self.degree));
|
||||||
let _ = map.insert("minutes".to_owned(), Value::Integer(self.minutes));
|
let _ = map.insert("minutes".to_owned(), Value::Integer(self.minutes));
|
||||||
let _ = map.insert("seconds".to_owned(), Value::Integer(self.seconds));
|
let _ = map.insert("seconds".to_owned(), Value::Integer(self.seconds));
|
||||||
|
@ -141,7 +141,7 @@ impl Coordinates {
|
||||||
impl Into<Value> for Coordinates {
|
impl Into<Value> for Coordinates {
|
||||||
|
|
||||||
fn into(self) -> Value {
|
fn into(self) -> Value {
|
||||||
let mut map = BTreeMap::new();
|
let mut map = Map::new();
|
||||||
let _ = map.insert("longitude".to_owned(), self.longitude.into());
|
let _ = map.insert("longitude".to_owned(), self.longitude.into());
|
||||||
let _ = map.insert("latitude".to_owned(), self.latitude.into());
|
let _ = map.insert("latitude".to_owned(), self.latitude.into());
|
||||||
Value::Table(map)
|
Value::Table(map)
|
||||||
|
@ -154,7 +154,7 @@ impl FromValue for Coordinates {
|
||||||
v.as_table()
|
v.as_table()
|
||||||
.ok_or_else(|| Error::from(EM::EntryHeaderTypeError))
|
.ok_or_else(|| Error::from(EM::EntryHeaderTypeError))
|
||||||
.and_then(|t| {
|
.and_then(|t| {
|
||||||
let get = |m: &BTreeMap<_, _>, what: &'static str, ek| -> Result<GPSValue> {
|
let get = |m: &Map<_, _>, what: &'static str, ek| -> Result<GPSValue> {
|
||||||
m.get(what)
|
m.get(what)
|
||||||
.ok_or_else(|| Error::from(err_msg(ek)))
|
.ok_or_else(|| Error::from(err_msg(ek)))
|
||||||
.and_then(GPSValue::from_value)
|
.and_then(GPSValue::from_value)
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
url = "1.5"
|
url = "1.5"
|
||||||
sha-1 = "0.7"
|
sha-1 = "0.7"
|
||||||
hex = "0.3"
|
hex = "0.3"
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
///
|
///
|
||||||
|
|
||||||
use std::ops::DerefMut;
|
use std::ops::DerefMut;
|
||||||
use std::collections::BTreeMap;
|
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
|
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
@ -43,6 +42,7 @@ use libimagerror::errors::ErrorMsg as EM;
|
||||||
use toml_query::read::TomlValueReadExt;
|
use toml_query::read::TomlValueReadExt;
|
||||||
use toml_query::read::TomlValueReadTypeExt;
|
use toml_query::read::TomlValueReadTypeExt;
|
||||||
use toml_query::insert::TomlValueInsertExt;
|
use toml_query::insert::TomlValueInsertExt;
|
||||||
|
use toml::map::Map;
|
||||||
use failure::Error;
|
use failure::Error;
|
||||||
use failure::Fallible as Result;
|
use failure::Fallible as Result;
|
||||||
use failure::ResultExt;
|
use failure::ResultExt;
|
||||||
|
@ -366,9 +366,9 @@ impl ExternalLinker for Entry {
|
||||||
Some(_) => {
|
Some(_) => {
|
||||||
warn!("There is a value at 'links.external.content' which is not a table.");
|
warn!("There is a value at 'links.external.content' which is not a table.");
|
||||||
warn!("Going to override this value");
|
warn!("Going to override this value");
|
||||||
BTreeMap::new()
|
Map::new()
|
||||||
},
|
},
|
||||||
None => BTreeMap::new(),
|
None => Map::new(),
|
||||||
};
|
};
|
||||||
|
|
||||||
let v = Value::String(link.into_string());
|
let v = Value::String(link.into_string());
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
//
|
//
|
||||||
|
|
||||||
use std::collections::BTreeMap;
|
|
||||||
|
|
||||||
use libimagstore::storeid::StoreId;
|
use libimagstore::storeid::StoreId;
|
||||||
use libimagstore::storeid::IntoStoreId;
|
use libimagstore::storeid::IntoStoreId;
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
@ -27,6 +25,7 @@ use libimagerror::errors::ErrorMsg as EM;
|
||||||
|
|
||||||
use toml_query::read::TomlValueReadExt;
|
use toml_query::read::TomlValueReadExt;
|
||||||
use toml_query::insert::TomlValueInsertExt;
|
use toml_query::insert::TomlValueInsertExt;
|
||||||
|
use toml::map::Map;
|
||||||
use failure::ResultExt;
|
use failure::ResultExt;
|
||||||
use failure::Fallible as Result;
|
use failure::Fallible as Result;
|
||||||
use failure::Error;
|
use failure::Error;
|
||||||
|
@ -99,7 +98,7 @@ impl Link {
|
||||||
.context(EM::ConversionError)
|
.context(EM::ConversionError)
|
||||||
.map_err(Error::from)
|
.map_err(Error::from)
|
||||||
.map(|link| {
|
.map(|link| {
|
||||||
let mut tab = BTreeMap::new();
|
let mut tab = Map::new();
|
||||||
|
|
||||||
tab.insert("link".to_owned(), link);
|
tab.insert("link".to_owned(), link);
|
||||||
tab.insert("annotation".to_owned(), Value::String(anno.clone()));
|
tab.insert("annotation".to_owned(), Value::String(anno.clone()));
|
||||||
|
|
|
@ -24,7 +24,7 @@ itertools = "0.7"
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
sha-1 = "0.8"
|
sha-1 = "0.8"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
serde = "1"
|
serde = "1"
|
||||||
serde_derive = "1"
|
serde_derive = "1"
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
//
|
//
|
||||||
|
|
||||||
|
use std::collections::BTreeMap;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::collections::BTreeMap;
|
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
|
|
||||||
use libimagentryutil::isa::Is;
|
use libimagentryutil::isa::Is;
|
||||||
|
@ -27,6 +27,7 @@ use libimagentryutil::isa::IsKindHeaderPathProvider;
|
||||||
use libimagerror::errors::ErrorMsg as EM;
|
use libimagerror::errors::ErrorMsg as EM;
|
||||||
|
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
|
use toml::map::Map;
|
||||||
use toml_query::read::TomlValueReadExt;
|
use toml_query::read::TomlValueReadExt;
|
||||||
use toml_query::read::TomlValueReadTypeExt;
|
use toml_query::read::TomlValueReadTypeExt;
|
||||||
use toml_query::read::Partial;
|
use toml_query::read::Partial;
|
||||||
|
@ -288,7 +289,7 @@ impl<'a, H> MutRef for MutRefWithHasher<'a, H>
|
||||||
|
|
||||||
if let Some(hash_tbl) = header.read_mut("ref.hash")? {
|
if let Some(hash_tbl) = header.read_mut("ref.hash")? {
|
||||||
match hash_tbl {
|
match hash_tbl {
|
||||||
Value::Table(ref mut tbl) => *tbl = BTreeMap::new(),
|
Value::Table(ref mut tbl) => *tbl = Map::new(),
|
||||||
_ => {
|
_ => {
|
||||||
// should not happen
|
// should not happen
|
||||||
}
|
}
|
||||||
|
@ -382,7 +383,7 @@ pub(crate) fn make_header_section<P, C, H>(hash: String, hashname: H, relpath: P
|
||||||
C: AsRef<str>,
|
C: AsRef<str>,
|
||||||
H: AsRef<str>,
|
H: AsRef<str>,
|
||||||
{
|
{
|
||||||
let mut header_section = Value::Table(BTreeMap::new());
|
let mut header_section = Value::Table(Map::new());
|
||||||
{
|
{
|
||||||
let relpath = relpath
|
let relpath = relpath
|
||||||
.as_ref()
|
.as_ref()
|
||||||
|
@ -397,7 +398,7 @@ pub(crate) fn make_header_section<P, C, H>(hash: String, hashname: H, relpath: P
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
let mut hash_table = Value::Table(BTreeMap::new());
|
let mut hash_table = Value::Table(Map::new());
|
||||||
let _ = hash_table.insert(hashname.as_ref(), Value::String(hash))?;
|
let _ = hash_table.insert(hashname.as_ref(), Value::String(hash))?;
|
||||||
let _ = header_section.insert("hash", hash_table)?;
|
let _ = header_section.insert("hash", hash_table)?;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ maintenance = { status = "actively-developed" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
regex = "1"
|
regex = "1"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
itertools = "0.7"
|
itertools = "0.7"
|
||||||
is-match = "0.1"
|
is-match = "0.1"
|
||||||
filters = "0.3"
|
filters = "0.3"
|
||||||
|
|
|
@ -20,7 +20,7 @@ is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
|
||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
toml-query = "0.8"
|
toml-query = "0.8"
|
||||||
filters = "0.3"
|
filters = "0.3"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
|
@ -21,7 +21,7 @@ maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
textwrap = "0.10"
|
textwrap = "0.10"
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ interactor = "0.1"
|
||||||
lazy_static = "1.2"
|
lazy_static = "1.2"
|
||||||
log = "0.4.0"
|
log = "0.4.0"
|
||||||
regex = "1"
|
regex = "1"
|
||||||
toml = "0.4"
|
toml = "0.5"
|
||||||
handlebars = "1.0"
|
handlebars = "1.0"
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
|
|
Loading…
Reference in a new issue