Could not compile `ruff_python_ast` because of `salsa`
Author: AeronCreated Sep 25, 2026Updated Sep 25, 2026
Since version 1.0 was released, I tried to install the runtime through cargo install monty-runtime, but got the following errors:
Updating crates.io index
Installing monty-runtime v1.0.0
Updating crates.io index
Locking 374 packages to latest compatible versions
Adding anstream v0.6.21 (available: v1.0.0)
Adding generic-array v0.14.7 (available: v0.14.9)
Adding rustyline v15.0.0 (available: v18.0.1)
Compiling unicode-ident v1.0.26
…
Compiling salsa v0.28.5
…
Compiling ruff_python_ast v0.0.14
…
Compiling subtle v2.6.1
Compiling num-traits v0.2.19
error[E0407]: method `hash` is not a member of trait `salsa::HashEqLike`
--> /Users/aeron/.local/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ruff_python_ast-0.0.14/src/name.rs:176:5
|
176 | / fn hash<H: Hasher>(&self, state: &mut H) {
177 | | self.as_str().hash(state);
178 | | }
| |_____^ not a member of trait `salsa::HashEqLike`
error[E0407]: method `hash` is not a member of trait `salsa::HashEqLike`
--> /Users/aeron/.local/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ruff_python_ast-0.0.14/src/name.rs:219:5
|
219 | / fn hash<H: Hasher>(&self, state: &mut H) {
220 | | Hash::hash(self, state);
221 | | }
| |_____^ not a member of trait `salsa::HashEqLike`
error[E0407]: method `hash` is not a member of trait `salsa::HashEqLike`
--> /Users/aeron/.local/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ruff_python_ast-0.0.14/src/name.rs:232:5
|
232 | / fn hash<H: Hasher>(&self, state: &mut H) {
233 | | Hash::hash(self, state);
234 | | }
| |_____^ not a member of trait `salsa::HashEqLike`
Compiling typed-path v0.12.3
…
Compiling filetime v0.2.29
For more information about this error, try `rustc --explain E0407`.
error: could not compile `ruff_python_ast` (lib) due to 3 previous errorsThe issue looks quite similar to https://github.com/astral-sh/ruff/issues/28726. But the salsa dependency was indeed updated to 0.28.5 already. Maybe it’s just a matter of bumping the whole ruff_python_ast dependency up to 0.0.15.
Source: pydantic/monty