//! # Feature flags //! //! This crate exposes a number of features. These can be enabled or disabled as shown //! [in Cargo's documentation](https://doc.rust-lang.org/cargo/reference/features.html). Features //! are _disabled_ by default unless otherwise noted. //! //! Reliance on a given feature is always indicated alongside the item definition. //! //! - `std` (_enabled by default, implicitly enables `alloc`_) //! //! This enables a number of features that depend on the standard library. //! //! - `alloc` (_enabled by default via `std`_) //! //! Enables a number of features that require the ability to dynamically allocate memory. //! //! - `macros` //! //! Enables macros that provide compile-time verification of values and intuitive syntax. //! //! - `formatting` (_implicitly enables `std`_) //! //! Enables formatting of most structs. //! //! - `parsing` //! //! Enables parsing of most structs. //! //! - `local-offset` (_implicitly enables `std`_) //! //! This feature enables a number of methods that allow obtaining the system's UTC offset. //! //! - `large-dates` //! //! By default, only years within the ±9999 range (inclusive) are supported. If you need support //! for years outside this range, consider enabling this feature; the supported range will be //! increased to ±999,999. //! //! Note that enabling this feature has some costs, as it means forgoing some optimizations. //! Ambiguities may be introduced when parsing that would not otherwise exist. //! //! - `serde` //! //! Enables [serde](https://docs.rs/serde) support for all types except [`Instant`]. //! //! - `serde-human-readable` (_implicitly enables `serde`, `formatting`, and `parsing`_) //! //! Allows serde representations to use a human-readable format. This is determined by the //! serializer, not the user. If this feature is not enabled or if the serializer requests a //! non-human-readable format, a format optimized for binary representation will be used. //! //! Libraries should never enable this feature, as the decision of what format to use should be up //! to the user. //! //! - `rand` //! //! Enables [rand](https://docs.rs/rand) support for all types. //! //! - `quickcheck` (_implicitly enables `alloc`_) //! //! Enables [quickcheck](https://docs.rs/quickcheck) support for all types except [`Instant`]. //! //! - `wasm-bindgen` //! //! Enables [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) support for converting //! [JavaScript dates](https://rustwasm.github.io/wasm-bindgen/api/js_sys/struct.Date.html), as //! well as obtaining the UTC offset from JavaScript.
/// An alias for [`std::result::Result`] with a generic error from the time crate. pubtype Result<T> = core::result::Result<T, Error>;
/// This is a separate function to reduce the code size of `expect_opt!`. #[inline(never)] #[cold] #[track_caller] constfn expect_failed(message: &str) -> ! {
panic!("{}", message)
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-18)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.