Merge pull request #345 from djmitche/reexport-chrono

Re-export the chrono crate from taskchampion.
This commit is contained in:
Dustin J. Mitchell 2022-03-15 17:59:03 -04:00 committed by GitHub
commit a030053dae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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.