File tree 2 files changed +2
-16
lines changed
2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -20,19 +20,17 @@ appveyor = { repository = "chronotope/chrono" }
20
20
name = " chrono"
21
21
22
22
[features ]
23
- default = [" clock" , " std" , " oldtime " , " wasmbind" ]
23
+ default = [" clock" , " std" , " wasmbind" ]
24
24
alloc = []
25
25
libc = []
26
26
std = []
27
27
clock = [" std" , " winapi" , " iana-time-zone" ]
28
- oldtime = [" time" ]
29
28
wasmbind = [" wasm-bindgen" , " js-sys" ]
30
29
unstable-locales = [" pure-rust-locales" , " alloc" ]
31
30
__internal_bench = [" criterion" ]
32
31
__doctest = []
33
32
34
33
[dependencies ]
35
- time = { version = " 0.1.43" , optional = true }
36
34
num-integer = { version = " 0.1.36" , default-features = false }
37
35
num-traits = { version = " 0.2" , default-features = false }
38
36
rustc-serialize = { version = " 0.3.20" , optional = true }
Original file line number Diff line number Diff line change 56
56
//! nanoseconds and does not represent "nominal" components such as days or
57
57
//! months.
58
58
//!
59
- //! When the `oldtime` feature is enabled, [`Duration`] is an alias for the
60
- //! [`time::Duration`](https://docs.rs/time/0.1.40/time/struct.Duration.html)
61
- //! type from v0.1 of the time crate. time v0.1 is deprecated, so new code
62
- //! should disable the `oldtime` feature and use the `chrono::Duration` type
63
- //! instead. The `oldtime` feature is enabled by default for backwards
64
- //! compatibility, but future versions of Chrono are likely to remove the
65
- //! feature entirely.
66
- //!
67
59
//! Chrono does not yet natively support
68
60
//! the standard [`Duration`](https://doc.rust-lang.org/std/time/struct.Duration.html) type,
69
61
//! but it will be supported in the future.
410
402
#![ cfg_attr( feature = "rustc-serialize" , allow( deprecated) ) ]
411
403
#![ cfg_attr( docsrs, feature( doc_cfg) ) ]
412
404
413
- #[ cfg( feature = "oldtime" ) ]
414
- #[ cfg_attr( docsrs, doc( cfg( feature = "oldtime" ) ) ) ]
415
- extern crate time as oldtime;
416
- #[ cfg( not( feature = "oldtime" ) ) ]
417
405
mod oldtime;
418
- // this reexport is to aid the transition and should not be in the prelude!
406
+
419
407
pub use oldtime:: { Duration , OutOfRangeError } ;
420
408
421
409
#[ cfg( feature = "__doctest" ) ]
You can’t perform that action at this time.
0 commit comments