#! /bin/env python3
# This file automatically generates the README.md file for this repository based upon the first
# section of the crate documentation.
withopen("README.md","w")asreadme:withopen("src/lib.rs","r")aslib:forlineinlib:iflen(line)>4:line=line[4:]else:line="\n"ifline.endswith("<!-- snip -->\n"):breakreadme.write(line)