Oddbean new post about | logout
 Could any Rustaceans out there explain:

I have a package (toy-rpc), if i enter its version in Cargo.toml I get one specific error when i run `cargo check` (or build ofc). This is ok, i can solve that error.

When I change from version to local file in Cargo.toml **, while making sure the local git repo is checked out at exactly the same commit (one that is tagged with the same version no.), I get a bunch of different errors.

I'm stumped; considering as, per commit hash, I'm compiling against literally the exact same code.
Any one know what I missed?

** i.e  `toy-rpc = {path = "/path/to/toy-rpc", ...}`