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:
Dustin J. Mitchell 2022-03-12 20:12:39 +00:00
parent 9355e1a728
commit f8c4ece238
No known key found for this signature in database
17 changed files with 23 additions and 24 deletions

View file

@ -9,7 +9,6 @@ crate-type = ["staticlib", "cdylib"]
[dependencies]
libc = "0.2.113"
chrono = "^0.4.10"
taskchampion = { path = "../taskchampion" }
anyhow = "1.0"

View file

@ -1,6 +1,6 @@
use crate::traits::*;
use crate::types::*;
use chrono::prelude::*;
use taskchampion::chrono::prelude::*;
/// TCAnnotation contains the details of an annotation.
///

View file

@ -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;

View file

@ -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.