| Crates.io | tidy-sys |
| lib.rs | tidy-sys |
| version | 0.8.2 |
| created_at | 2023-12-13 19:44:26.92791+00 |
| updated_at | 2024-08-27 12:49:58.972239+00 |
| description | Raw FFI bindings to the Tidy C library |
| homepage | https://github.com/insomnimus/tidy-sys |
| repository | https://github.com/insomnimus/tidy-sys |
| max_upload_size | |
| id | 1068304 |
| size | 4,958,779 |
Rust bindings for the HTML Tidy library.
The source code for Tidy is vendored in this repository for ease of use, under the vendor/ directory.
Otherwise this is an unassociated project.
Also note that Tidy has its own license; this crate's license is for files excluding the vendor/ directory.
This crate will build the Tidy library from source and generate bindings depending on the target platform. Some external tools are required:
Tidy will be built with:
-DNDEBUG, regardless of the rust profile (not setting it causes Tidy to debug-log to stderr uncontrollably)Release as other values cause problems with Visual Studio generatorsCFLAGS and TIDY_SYS_CFLAGS)This crate respects the standard environment variables used by C compilers and related tools, such as CC, CFLAGS, LD etc.
In addition, you can set the TIDY_SYS_CFLAGS environment variable; the values will be appended to CFLAGS while building Tidy.
Currently there's only one feature, by default disabled:
localization: Enable multi-language support in Tidy (sets the SUPPORT_LOCALIZATIONS option to on with CMake).