Skip to content

Commit

Permalink
0.1.17: language changes.
Browse files Browse the repository at this point in the history
- Many unstable stdlib parts require `#[feature]` flags as per
  Rust RFC #507.
  • Loading branch information
lifthrasiir committed Jan 29, 2015
1 parent 7087cd1 commit 36181b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chrono"
version = "0.1.16"
version = "0.1.17"
authors = ["Kang Seonghoon <public+rust@mearie.org>"]

description = "Date and time library for Rust"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Chrono][doc] 0.1.16
[Chrono][doc] 0.1.17
====================

[![Chrono on Travis CI][travis-image]][travis]
Expand Down
8 changes: 3 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/*!
# Chrono 0.1.16
# Chrono 0.1.17
Date and time handling for Rust. (also known as `rust-chrono`)
It aims to be a feature-complete superset of the [time](https://github.com/rust-lang/time) library.
Expand Down Expand Up @@ -78,7 +78,6 @@ Addition and subtraction is also supported.
The following illustrates most supported operations to the date and time:
~~~~ {.rust}
# #![allow(unstable)]
# /* we intentionally fake the datetime...
use chrono::{UTC, Local, Datelike, Timelike, Weekday, Duration};
Expand Down Expand Up @@ -120,7 +119,6 @@ which format is equivalent to the familiar `strftime` format.
The default `to_string` method and `{:?}` specifier also give a reasonable representation.
~~~~ {.rust}
# #![allow(unstable)]
use chrono::{UTC, Offset};
let dt = UTC.ymd(2014, 11, 28).and_hms(12, 0, 9);
Expand All @@ -140,7 +138,6 @@ Most operations available to `DateTime` are also available to `Date` and `Time`
whenever appropriate.
~~~~ {.rust}
# #![allow(unstable)]
use chrono::{UTC, Local, Offset, LocalResult, Datelike, Weekday};
# // these *may* fail, but only very rarely. just rerun the test if you were that unfortunate ;)
Expand Down Expand Up @@ -188,7 +185,8 @@ Advanced offset handling and date/time parsing is not yet supported (but is plan

#![doc(html_root_url = "https://lifthrasiir.github.io/rust-chrono/")]

#![allow(unstable)]
#![feature(core, collections, hash, std_misc)] // lib stability features as per RFC #507
#![cfg_attr(test, feature(test))] // ditto
#![deny(missing_docs)]

extern crate "time" as stdtime;
Expand Down

0 comments on commit 36181b6

Please sign in to comment.