tasklib

Crates.iotasklib
lib.rstasklib
version0.3.2
sourcesrc
created_at2022-10-11 05:30:19.289549
updated_at2024-03-30 06:10:08.617691
descriptionLibrary used to interact with Taskwarrior in Rust.
homepagehttps://github.com/AceofSpades5757/tasklib-rs
repositoryhttps://github.com/AceofSpades5757/tasklib-rs
max_upload_size
id685077
size147,251
Kyle L. Davis (AceofSpades5757)

documentation

README

Crates.io Crates.io Docs

Description

Library used to interact with Taskwarrior in Rust.

Usage

Add this crate to your Cargo.toml file, or use cargo add tasklib.

[dependencies]
tasklib = "0.3"

Here is a minimal example.

use tasklib::Task;

let json = r#"
{
  "id": 0,
  "description": "Task to do",
  "end": "20220131T083000Z",
  "entry": "20220131T083000Z",
  "modified": "20220131T083000Z",
  "project": "Daily",
  "start": "20220131T083000Z",
  "status": "pending",
  "uuid": "d67fce70-c0b6-43c5-affc-a21e64567d40",
  "tags": [
    "WORK"
  ],
  "urgency": 9.91234
}"#;

// Getting a Task from your input JSON string.
let task: Task = Task::from(json);
// Getting a String from your Serialized Task
let task_str: String = task.into();
Commit count: 69

cargo fmt