name taskwarrior-rest

This commit is contained in:
Dustin J. Mitchell 2020-01-02 21:08:17 -05:00
parent 752d05e96b
commit 727db7f669
8 changed files with 21 additions and 20 deletions

26
Cargo.lock generated
View file

@ -366,19 +366,6 @@ dependencies = [
"rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "rask"
version = "0.1.0"
dependencies = [
"chrono 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)",
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
"failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
"proptest 0.9.4 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)",
"uuid 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "rdrand"
version = "0.4.0"
@ -480,6 +467,19 @@ dependencies = [
"unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "taskwarrior-rust"
version = "0.1.0"
dependencies = [
"chrono 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)",
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
"failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
"proptest 0.9.4 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 1.0.44 (registry+https://github.com/rust-lang/crates.io-index)",
"uuid 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "tempfile"
version = "3.1.0"

View file

@ -1,5 +1,5 @@
[package]
name = "rask"
name = "taskwarrior-rust"
version = "0.1.0"
authors = ["Dustin J. Mitchell <dustin@mozilla.com>"]
edition = "2018"

View file

@ -1,6 +1,6 @@
extern crate clap;
use clap::{App, Arg, SubCommand};
use rask::{Replica, DB};
use taskwarrior_rust::{Replica, DB};
use uuid::Uuid;
fn main() {

View file

@ -89,7 +89,8 @@ fn decode(value: String) -> String {
/// Parse an "FF4" formatted task line. From Task::parse in Taskwarrior's src/Task.cpp.
///
/// While Taskwarrior supports additional formats, this is the only format supported by rask.
/// While Taskwarrior supports additional formats, this is the only format supported by
/// taskwarrior_rust.
pub(super) fn parse_ff4(line: &str) -> Fallible<Task> {
let mut pig = Pig::new(line.as_bytes());
let mut builder = TaskBuilder::new();

View file

@ -1,6 +1,6 @@
use chrono::Utc;
use proptest::prelude::*;
use rask::{Operation, DB};
use taskwarrior_rust::{Operation, DB};
use uuid::Uuid;
fn uuid_strategy() -> impl Strategy<Value = Uuid> {

View file

@ -6,7 +6,7 @@ use std::io::BufReader;
fn test_parse() {
let filename = "tests/data/tdb2-test.data";
let file = File::open(filename).unwrap();
let tasks = rask::parse(filename, BufReader::new(file)).unwrap();
let tasks = taskwarrior_rust::parse(filename, BufReader::new(file)).unwrap();
assert_eq!(
tasks[0].description,
"https://phabricator.services.example.com/D7364 [taskgraph] Download debian packages"

View file

@ -1,5 +1,5 @@
use chrono::Utc;
use rask::{Operation, Server, DB};
use taskwarrior_rust::{Operation, Server, DB};
use uuid::Uuid;
#[test]

View file

@ -1,6 +1,6 @@
use chrono::Utc;
use proptest::prelude::*;
use rask::{Operation, Server, DB};
use taskwarrior_rust::{Operation, Server, DB};
use uuid::Uuid;
#[derive(Debug)]