Skip to content

Commit

Permalink
release: 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed Oct 21, 2021
2 parents 322d749 + b8062a3 commit 1cf33fa
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 23 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Changelog

## [0.3.0](https://github.com/Blobfolio/utc2k/releases/tag/v0.3.0) - 2021-10-21

### Added

- This changelog! Haha.

### Changed

- Use Rust edition 2021.
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[package]
name = "utc2k"
version = "0.2.7"
version = "0.3.0"
authors = ["Blobfolio, LLC. <[email protected]>"]
edition = "2018"
edition = "2021"
rust-version = "1.56"
description = "A fast and lean UTC date/time library concerned only with happenings in this century (2000-2099)."
license = "WTFPL"
repository = "https://github.com/Blobfolio/utc2k"
Expand All @@ -17,7 +18,7 @@ exclude = [
]

[dev-dependencies]
brunch = "0.1.*"
brunch = "0.2.*"
rand = "0.8.*"
serde = "1.0.*"
serde_json = "1.0.*"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Add `utc2k` to your `dependencies` in `Cargo.toml`, like:

```
[dependencies]
utc2k = "0.2.*"
utc2k = "0.3.*"
```


Expand Down
1 change: 0 additions & 1 deletion benches/d_fmtutc2k.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use chrono::{
Utc,
TimeZone,
};
use std::convert::TryFrom;
use utc2k::{
FmtUtc2k,
Utc2k,
Expand Down
1 change: 0 additions & 1 deletion benches/d_utc2k.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use chrono::{
Utc,
TimeZone,
};
use std::convert::TryFrom;
use utc2k::Utc2k;


Expand Down
11 changes: 0 additions & 11 deletions src/date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use crate::{
use std::{
borrow::Borrow,
cmp::Ordering,
convert::TryFrom,
ffi::OsStr,
fmt,
ops::{
Expand Down Expand Up @@ -166,7 +165,6 @@ impl TryFrom<&OsStr> for FmtUtc2k {
/// # From `OsStr`.
///
/// ```
/// use std::convert::TryFrom;
/// use std::ffi::OsStr;
/// use utc2k::FmtUtc2k;
///
Expand Down Expand Up @@ -447,7 +445,6 @@ impl FmtUtc2k {
///
/// ```
/// use utc2k::Utc2k;
/// use std::convert::TryFrom;
///
/// let date = Utc2k::default(); // 2000-01-01 00:00:00
/// let date = Utc2k::now(); // The current time.
Expand Down Expand Up @@ -574,7 +571,6 @@ impl TryFrom<&OsStr> for Utc2k {
/// # From `OsStr`.
///
/// ```
/// use std::convert::TryFrom;
/// use std::ffi::OsStr;
/// use utc2k::Utc2k;
///
Expand Down Expand Up @@ -612,7 +608,6 @@ impl TryFrom<&str> for Utc2k {
///
/// ```
/// use utc2k::Utc2k;
/// use std::convert::TryFrom;
///
/// let date = Utc2k::try_from("2021/06/25").unwrap();
/// assert_eq!(date.to_string(), "2021-06-25 00:00:00");
Expand Down Expand Up @@ -1010,7 +1005,6 @@ impl Utc2k {
///
/// ```
/// use utc2k::Utc2k;
/// use std::convert::TryFrom;
///
/// let date = Utc2k::try_from("2020-05-10 00:00:00").unwrap();
/// assert!(date.leap_year());
Expand All @@ -1034,7 +1028,6 @@ impl Utc2k {
///
/// ```
/// use utc2k::Utc2k;
/// use std::convert::TryFrom;
///
/// let date = Utc2k::try_from("2020-06-24 20:19:30").unwrap();
/// assert_eq!(date.month_abbreviation(), "Jun");
Expand Down Expand Up @@ -1065,7 +1058,6 @@ impl Utc2k {
///
/// ```
/// use utc2k::Utc2k;
/// use std::convert::TryFrom;
///
/// let date = Utc2k::try_from("2020-06-24 20:19:30").unwrap();
/// assert_eq!(date.month_name(), "June");
Expand Down Expand Up @@ -1100,7 +1092,6 @@ impl Utc2k {
///
/// ```
/// use utc2k::Utc2k;
/// use std::convert::TryFrom;
///
/// let date = Utc2k::try_from("2021-07-08 13:22:01").unwrap();
/// assert_eq!(date.month_size(), 31);
Expand All @@ -1124,7 +1115,6 @@ impl Utc2k {
///
/// ```
/// use utc2k::Utc2k;
/// use std::convert::TryFrom;
///
/// let date = Utc2k::try_from("2020-05-10 00:00:00").unwrap();
/// assert_eq!(date.ordinal(), 131);
Expand Down Expand Up @@ -1192,7 +1182,6 @@ impl Utc2k {
///
/// ```
/// use utc2k::{Utc2k, Weekday};
/// use std::convert::TryFrom;
///
/// let date = Utc2k::try_from("2021-07-08 13:22:01").unwrap();
/// assert_eq!(date.weekday(), Weekday::Thursday);
Expand Down
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ The main date object is [`Utc2k`].
```
use utc2k::Utc2k;
use std::convert::TryFrom;
let date = Utc2k::default(); // 2000-01-01 00:00:00
let date = Utc2k::now(); // The current time.
Expand All @@ -47,7 +46,6 @@ There is also [`FmtUtc2k`], used for string representation.
```
use utc2k::{FmtUtc2k, Utc2k};
use std::convert::TryFrom;
// You can generate it from an existing Utc2k with either:
assert_eq!(Utc2k::default().formatted(), FmtUtc2k::from(Utc2k::default()));
Expand Down Expand Up @@ -86,7 +84,7 @@ Add `utc2k` to your `dependencies` in `Cargo.toml`, like:
```ignore,text
[dependencies]
utc2k = "0.2.*"
utc2k = "0.3.*"
```
*/

Expand Down
7 changes: 4 additions & 3 deletions src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ use serde::{
ser,
Serialize,
};
use std::convert::TryFrom;
use std::marker::PhantomData;
use std::fmt;
use std::{
marker::PhantomData,
fmt,
};



Expand Down

0 comments on commit 1cf33fa

Please sign in to comment.