To solve this, add `anchor-spl/idl-build` to the `idl-build` feature list:
[features] idl-build = ["anchor-spl/idl-build", ...]