Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

## [Unreleased]

## [0.3.19] (2026-08-01)

### Fixed

* Windows/MSVC link failure in 0.3.18 (`LNK2019: unresolved external symbol
xmlFree`): the `expand_to_document` prefix-restoration freed the minted
prefix through the `xmlFree` global, which is not a linkable data symbol on
MSVC builds. It now goes through `c_helpers::bindgenFree`, the crate's
existing per-target free shim. Any consumer LINKING 0.3.18 on
`windows-msvc` fails; `cargo check` passes (no link step), which is how it
escaped. 0.3.18 is yanked.

## [0.3.18] (2026-07-31)

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libxml"
version = "0.3.18"
version = "0.3.19"
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>"]
Expand Down
7 changes: 4 additions & 3 deletions src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,10 @@ impl TextReader {
} else {
xmlStrdup(want)
};
if let Some(xml_free_fn) = xmlFree {
xml_free_fn(old);
}
// Portable free: on MSVC `xmlFree` is not a linkable data
// symbol (LNK2019 in 0.3.18); `bindgenFree` carries the
// per-target arm the crate already uses elsewhere.
crate::c_helpers::bindgenFree(old);
}
}
}
Expand Down
Loading