// https://github.com/unicode-org/icu4x/blob/main/documents/process/boilerplate.md#library-annotations #![cfg_attr(not(any(test, feature = "std")), no_std)] #![cfg_attr(
not(test),
deny(
clippy::indexing_slicing,
clippy::unwrap_used,
clippy::expect_used,
clippy::panic, // Enums should be non-exhaustive, as exhaustive enums don't exist in other languages anyway
clippy::exhaustive_enums, // Structs should be exhaustive, as they are exhaustive in C/C++ // Debug is not required as there is no stable Rust API
)
)] // Diplomat limitations #![allow(
clippy::needless_lifetimes,
clippy::result_unit_err,
clippy::should_implement_trait
)] // libc is behind a negative feature #![allow(unused_crate_dependencies)]
//! This crate contains the `extern "C"` FFI for ICU4X, as well as the [Diplomat](https://github.com/rust-diplomat/diplomat)-generated //! C, C++, Dart, JavaScript, and TypeScript bindings. #![allow(rustdoc::invalid_html_tags)] // attribute split over three lines because `cargo generate-readmes` does not evaluate `#![doc = ]` docs //! <p style='font-weight: bold; font-size: 24px;'> See the <a target='_blank' href='https://icu4x.unicode.org/ #![cfg_attr(doc, doc = core::env!("CARGO_PKG_VERSION"))] //! '>ICU4X website</a> for FFI docs and examples</p> //! //! This crate is `no_std`-compatible, but requires an allocator. If you wish to use it in `no_std` mode, you can either //! enable the `looping_panic_handler` and `libc_alloc` Cargo features, or write a wrapper crate that defines an //! allocator/panic handler. //! //! <div class="stab unstable"> //! While the types in this crate are public, APIs from this crate are <em>not intended to be used from Rust</em> and as //! such this crate may unpredictably change its Rust API across compatible semver versions. //! //! The <code>extern "C"</code> APIs exposed by this crate, while not directly documented, are stable within the same major //! semver version, as are the bindings in the <code>bindings</code> folder. //! </div>
// Renamed so you can't accidentally use it #[cfg(target_arch = "wasm32")] externcrate std as rust_std;
#[cfg(feature = "datetime")] pub(crate) mod datetime_helpers;
/// The Rust API of this crate is **UNSTABLE**; this crate is primarily intended /// to be used from its FFI bindings, packaged with the crate. /// /// The C ABI layer is stable. #[path = "."] // https://github.com/rust-lang/rust/issues/35016 pubmod unstable { // Common modules pubmod errors; pubmod locale_core; #[cfg(feature = "logging")] pubmod logging; #[macro_use] pubmod provider;
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.