mirror of
https://github.com/chronotope/chrono.git
synced 2025-09-28 05:21:39 +00:00
Remove unused libc dependency from Cargo.toml (#710)
* Remove unused libc dependency from Cargo.toml * Add libc feature to prevent potentially breaking change * Document libc dependency removal
This commit is contained in:
parent
8dd7245f85
commit
13e1d48365
@ -31,6 +31,7 @@ Versions with only mechanical changes will be omitted from the following list.
|
||||
* Implement `DoubleEndedIterator` for `NaiveDateDaysIterator` and `NaiveDateWeeksIterator`
|
||||
* Fix panicking when parsing a `DateTime` (@botahamec)
|
||||
* Add support for getting week bounds based on a specific `NaiveDate` and a `Weekday` (#666)
|
||||
* Remove libc dependency from Cargo.toml.
|
||||
|
||||
## 0.4.19
|
||||
|
||||
|
@ -22,8 +22,9 @@ name = "chrono"
|
||||
[features]
|
||||
default = ["clock", "std", "oldtime"]
|
||||
alloc = []
|
||||
libc = []
|
||||
std = []
|
||||
clock = ["libc", "std", "winapi"]
|
||||
clock = ["std", "winapi"]
|
||||
oldtime = ["time"]
|
||||
wasmbind = ["wasm-bindgen", "js-sys"]
|
||||
unstable-locales = ["pure-rust-locales", "alloc"]
|
||||
@ -31,7 +32,6 @@ __internal_bench = ["criterion"]
|
||||
__doctest = []
|
||||
|
||||
[dependencies]
|
||||
libc = { version = "0.2.69", optional = true }
|
||||
time = { version = "0.1.43", optional = true }
|
||||
num-integer = { version = "0.1.36", default-features = false }
|
||||
num-traits = { version = "0.2", default-features = false }
|
||||
|
@ -55,8 +55,8 @@ Default features:
|
||||
- `std`: Enables functionality that depends on the standard library. This
|
||||
is a superset of `alloc` and adds interoperation with standard library types
|
||||
and traits.
|
||||
- `clock`: enables reading the system time (`now`), independent of whether
|
||||
`std::time::SystemTime` is present, depends on having a libc.
|
||||
- `clock`: Enables reading the system time (`now`) that depends on the standard library for
|
||||
UNIX-like operating systems and the Windows API (`winapi`) for Windows.
|
||||
|
||||
Optional features:
|
||||
|
||||
|
@ -42,8 +42,8 @@
|
||||
//! - `std`: Enables functionality that depends on the standard library. This
|
||||
//! is a superset of `alloc` and adds interoperation with standard library types
|
||||
//! and traits.
|
||||
//! - `clock`: enables reading the system time (`now`), independent of whether
|
||||
//! `std::time::SystemTime` is present, depends on having a libc.
|
||||
//! - `clock`: Enables reading the system time (`now`) that depends on the standard library for
|
||||
//! UNIX-like operating systems and the Windows API (`winapi`) for Windows.
|
||||
//!
|
||||
//! Optional features:
|
||||
//!
|
||||
|
Loading…
x
Reference in New Issue
Block a user