Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused libc dependency from Cargo.toml #710

Merged
merged 3 commits into from Jun 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Expand Up @@ -22,16 +22,16 @@ 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"]
__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 }
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Expand Up @@ -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:
//!
Expand Down