Replace the generated public suffix table and custom matcher with a direct LibURL PublicSuffixData implementation backed by libpsl. This drops our PSL download/generator path and uses the same library already used by libcurl. Performance is comparable before and after, while LibURL binary size is smaller.
16 lines
504 B
CMake
16 lines
504 B
CMake
set(SOURCES
|
|
Host.cpp
|
|
Origin.cpp
|
|
Parser.cpp
|
|
PublicSuffixData.cpp
|
|
RustIntegration.cpp
|
|
Site.cpp
|
|
URL.cpp
|
|
)
|
|
|
|
ladybird_lib(LibURL url)
|
|
target_link_libraries(LibURL PRIVATE liburl_rust LibUnicode LibTextCodec LibRegex PkgConfig::LIBPSL)
|
|
|
|
import_rust_crate(MANIFEST_PATH Rust/Cargo.toml CRATE_NAME liburl_rust FEATURES allocator FFI_HEADER RustFFI.h)
|
|
target_link_libraries(liburl_rust INTERFACE LibUnicode LibTextCodec LibRegex)
|
|
target_compile_definitions(LibURL PRIVATE ENABLE_RUST)
|