3 个不稳定版本

0.2.1 2024 年 2 月 5 日
0.2.0 2021 年 6 月 4 日
0.1.0 2021 年 1 月 16 日

文本处理 中排名 #1502

Download history • Rust 包仓库 173/week @ 2024-03-13 • Rust 包仓库 262/week @ 2024-03-20 • Rust 包仓库 246/week @ 2024-03-27 • Rust 包仓库 247/week @ 2024-04-03 • Rust 包仓库 224/week @ 2024-04-10 • Rust 包仓库 187/week @ 2024-04-17 • Rust 包仓库 202/week @ 2024-04-24 • Rust 包仓库 154/week @ 2024-05-01 • Rust 包仓库 167/week @ 2024-05-08 • Rust 包仓库 176/week @ 2024-05-15 • Rust 包仓库 172/week @ 2024-05-22 • Rust 包仓库 185/week @ 2024-05-29 • Rust 包仓库 169/week @ 2024-06-05 • Rust 包仓库 174/week @ 2024-06-12 • Rust 包仓库 214/week @ 2024-06-19 • Rust 包仓库 154/week @ 2024-06-26 • Rust 包仓库

每月下载量 729
19 个 crate 中使用 (通过 tectonic_xetex_layout)

MIT 许可证

7KB

《tectonic_bridge_icu》crate

此 crate 是 Tectonic 项目的一部分。它将 ICU4C Unicode 库的 C API 暴露给 Rust/Cargo 构建框架,**不提供 Rust 绑定**。

有各种其他低级 ICU 相关的 crate 可用,其中 rust_icu 可能采取了最系统的方法。此包的特点在于

  • 它使用 Tectonic 的依赖项查找框架,该框架支持 pkg-configvcpkg
  • 确保 ICU C API 对 Cargo 可用。
  • 因为它不需要提供 Rust 绑定,因此避免了与 bindgen、符号版本等问题的大量麻烦。

理想情况下,这个 crate 有一天将被真正的 Rust “sys crate” 取代。

如果你的项目依赖于此 crate,Cargo 将为你的构建脚本导出一个名为 DEP_ICUUC_INCLUDE_PATH 的环境变量,该变量将是一个分号分隔的 C 包含目录列表,使你的代码能够包含 unicode/* 头文件。

你需要确保你的 Rust 代码实际上引用了这个 crate,以便链接器包含链接库。一个 use 语句就足够了

#[allow(unused_imports)]
#[allow(clippy::single_component_path_imports)]
use tectonic_bridge_icu;

Cargo 功能

目前这个 crate 不提供任何 Cargo 功能

依赖关系

~26KB