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