mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 22:33:08 +02:00
Re-export the chrono crate from taskchampion.
The chrono types are central to use of TC, so this will help consumers of the TC crate to avoid dependency conflicts.
This commit is contained in:
parent
9355e1a728
commit
f8c4ece238
17 changed files with 23 additions and 24 deletions
|
@ -9,7 +9,6 @@ crate-type = ["staticlib", "cdylib"]
|
|||
|
||||
[dependencies]
|
||||
libc = "0.2.113"
|
||||
chrono = "^0.4.10"
|
||||
taskchampion = { path = "../taskchampion" }
|
||||
anyhow = "1.0"
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::traits::*;
|
||||
use crate::types::*;
|
||||
use chrono::prelude::*;
|
||||
use taskchampion::chrono::prelude::*;
|
||||
|
||||
/// TCAnnotation contains the details of an annotation.
|
||||
///
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//! Trait implementations for a few atomic types
|
||||
|
||||
use crate::traits::*;
|
||||
use chrono::prelude::*;
|
||||
use taskchampion::chrono::prelude::*;
|
||||
|
||||
impl PassByValue for usize {
|
||||
type RustType = usize;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
use crate::traits::*;
|
||||
use crate::types::*;
|
||||
use crate::util::err_to_ruststring;
|
||||
use chrono::{TimeZone, Utc};
|
||||
use std::convert::TryFrom;
|
||||
use std::ops::Deref;
|
||||
use std::ptr::NonNull;
|
||||
use std::str::FromStr;
|
||||
use taskchampion::chrono::{TimeZone, Utc};
|
||||
use taskchampion::{Annotation, Tag, Task, TaskMut};
|
||||
|
||||
/// A task, as publicly exposed by this library.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue