]> git.lizzy.rs Git - rust.git/commit
Avoid the merge derive macro in rustbuild
authorbjorn3 <bjorn3@users.noreply.github.com>
Sun, 26 Dec 2021 14:05:12 +0000 (15:05 +0100)
committerbjorn3 <bjorn3@users.noreply.github.com>
Sat, 1 Jan 2022 15:56:03 +0000 (16:56 +0100)
commit043745cb9688fbecd97638b2fa156cb055bbbb14
tree6c722e08e3fdfc9508306fd6e5986718ebe168bd
parent2fe2728fa900a708d2c70342d9d6737e5462cf5d
Avoid the merge derive macro in rustbuild

The task of the macro is simple enough that a decl macro is almost ten
times shorter than the original proc macro. The proc macro is 159 lines
while the decl macro is just 18 lines.

This reduces the amount of dependencies of rustbuild from 45 to 37. It
also slight reduces compilation time from 47s to 44s for debug builds.
Cargo.lock
src/bootstrap/Cargo.toml
src/bootstrap/config.rs