Generate Public Suffix List Data

generate-public-suffix-data generates the HTTP cookie implementation’s compact Public Suffix List tables. It reads the complete pinned ICANN and PRIVATE snapshot in tool/data/public_suffix and the shared configured Unicode sources in tool/data/ucd. Generation is offline and uses no Python packages.

Check or Regenerate the Tables

Run these commands from the repository root:

./erbsland-core-tool generate-public-suffix-data --check
./erbsland-core-tool generate-public-suffix-data

--check (-c) fails if the output is missing or meaningfully different, without writing. Normal generation validates the data and updates changed output, leaving equivalent files untouched.

Configuration and Overrides

Output settings are in tool/conf/tools/generate_public_suffix_data.elcl. The default destination is src/erbsland/network/impl/http/cookie/PublicSuffixData.cpp. Use --output-file for a one-off output in an existing project directory:

./erbsland-core-tool generate-public-suffix-data --output-file tool/data/PublicSuffixData.cpp

Select the list snapshot in tool/conf/source/public_suffix.elcl and the shared Unicode snapshot in tool/conf/source/unicode.elcl. There are no command-line input overrides. A custom snapshot needs its matching manifest; see Public Suffix Generator Reference for configuration and the manifest format. See Customize Generated Notices to customize generated notices.

Update the Snapshot

Follow Update the Public Suffix List to acquire and verify a new snapshot before regenerating the tables. For rule preparation, encoding, and verification, see Public Suffix Generator Reference.