crates.io already builds the artefacts.
But the code-source that is sent to crates.io is not necessarily the same as the one in the public repo linked to the crate.
But the code-source that is sent to crates.io is not necessarily the same as the one in the public repo linked to the crate.
It definitely does contain generated files, at least one crate has Rust code generated by a Python script that is not in the crate, only in the upstream Git repository.