2 个版本
| 0.1.1 | 2024年1月27日 | 
|---|---|
| 0.1.0 | 2024年1月27日 | 
#4 在 #editorconfig
在 editorconfig-rs 中使用
14KB
132 代码行
Rust FFI 绑定到 libeditorconfig
此包使用 bindgen 和 pkg-config 自动生成 Rust FFI 绑定到 editorconfig-core C 库。
遵循 *-sys 包约定,editorconfig-sys 只是对本地 libeditorconfig 库的简单封装。
依赖
要使用此包,必须安装 libeditorconfig >= 0.12.5 并确保 pkg-config 能够找到它。您可以使用以下命令检查 pkg-config 是否能找到库以及安装的版本:
pkg-config --modversion editorconfig
安装
将以下内容添加到您的 Cargo.toml
[dependencies]
editorconfig-sys = "0.1.1"
用法
一些 unsafe Rust 代码示例可以在 测试 中找到。
依赖
~0–1.8MB
~36K SLoC