| 1 |
[package] |
| 2 |
name = "libxml" |
| 3 |
version = "0.3.14" |
| 4 |
edition = "2024" |
| 5 |
authors = ["Andreas Franzén <[email protected]>", "Deyan Ginev <[email protected]>","Jan Frederik Schaefer <[email protected]>"] |
| 6 |
description = "A Rust wrapper for libxml2 - the XML C parser and toolkit developed for the Gnome project" |
| 7 |
repository = "https://github.com/KWARC/rust-libxml" |
| 8 |
documentation = "https://kwarc.github.io/rust-libxml/libxml/index.html" |
| 9 |
readme = "README.md" |
| 10 |
license = "MIT" |
| 11 |
keywords = ["xml", "libxml","xpath", "parser", "html"] |
| 12 |
build = "build.rs" |
| 13 |
exclude = [ |
| 14 |
"scripts/*" |
| 15 |
] |
| 16 |
|
| 17 |
[lib] |
| 18 |
name = "libxml" |
| 19 |
|
| 20 |
[features] |
| 21 |
# How bindgen locates libclang to generate the FFI bindings at BUILD time. |
| 22 |
# Orthogonal to the `LIBXML2_STATIC` env var, which controls how libxml2 itself is |
| 23 |
# linked into your binary (see build.rs). Together they let you build a fully |
| 24 |
# static / musl / Alpine binary — see issue #110. |
| 25 |
default = ["runtime"] |
| 26 |
# clang-sys loads libclang dynamically (dlopen) at build time — the usual desktop |
| 27 |
# setup; needs a libclang shared library available while building. |
| 28 |
runtime = ["bindgen/runtime"] |
| 29 |
# clang-sys links libclang statically — required for fully static / musl / Alpine |
| 30 |
# build environments where dlopen of libclang is unavailable. Select it WITHOUT |
| 31 |
# the default feature: cargo build --no-default-features --features static |
| 32 |
# (clang-sys then needs a static libclang, e.g. via LLVM_CONFIG_PATH). |
| 33 |
static = ["bindgen/static"] |
| 34 |
|
| 35 |
[dependencies] |
| 36 |
libc = "0.2" |
| 37 |
|
| 38 |
[target.'cfg(all(target_family = "windows", target_env = "msvc"))'.build-dependencies] |
| 39 |
vcpkg = "0.2" |
| 40 |
|
| 41 |
[target.'cfg(all(target_family = "windows", target_env = "gnu"))'.build-dependencies] |
| 42 |
pkg-config = "0.3.2" |
| 43 |
|
| 44 |
[target.'cfg(macos)'.build-dependencies] |
| 45 |
pkg-config = "0.3.2" |
| 46 |
|
| 47 |
[target.'cfg(unix)'.build-dependencies] |
| 48 |
pkg-config = "0.3.2" |
| 49 |
|
| 50 |
[build-dependencies.bindgen] |
| 51 |
version = "0.72.1" |
| 52 |
default-features = false |
| 53 |
|
| 54 |
[dev-dependencies] |
| 55 |
rayon = "1.0.0" |
| 56 |
criterion = "0.8.0" |
| 57 |
|
| 58 |
[[bench]] |
| 59 |
name = "parsing_benchmarks" |
| 60 |
harness = false |