import binascii


def _compute_crc32(path: str) -> int:
    """Compute and return the CRC-32 of a file at `path`.

    Parameters
    ----------
    path: str
        The path to the file.

    Returns
    -------
    int
        The CRC-32 of the data in the file.

    """
    with open(path, "rb") as file:
        data = file.read()
        return binascii.crc32(data)