**Workaround**: Patching the dependency in the root `Cargo.toml` should solve the issue for now:

```toml
[patch.crates-io]
parity-scale-codec = { git = "https://github.com/paritytech/parity-scale-codec.git", tag = "v3.6.5", features = ["derive"], default-features = false }
```