xref: /aosp_15_r20/external/skia/bazel/external/icu4x/src/lib.rs (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1 // This is a placeholder to generate a Cargo.lock file.
2 // This file is part of ICU4X. For terms of use, please see the file
3 // called LICENSE at the top level of the ICU4X source tree
4 // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
5 
6 //! This exists as a separate crate to work around
7 //! cargo being [unable to conditionally compile crate-types](https://github.com/rust-lang/cargo/issues/4881).
8 //!
9 //! This leads to problems like emscripten being unable to link
10 //! because symbols like log_js are not defined even if the crate_type
11 //! is not actually desired. As a workaround, the `icu_capi_staticlib` and
12 //! `icu_capi_cdylib` crates exist as endpoints to be built when those
13 //! respective library types are needed.
14 
15 // Necessary for symbols to be linked in
16 extern crate icu_capi;
17