Rename the isle crate to cranelift-isle

The `isle` crate name is already taken on crates.io :(
This commit is contained in:
Nick Fitzgerald
2021-12-07 14:53:40 -08:00
parent 7e80c061f2
commit 6af8d2a292
8 changed files with 21 additions and 19 deletions

View File

@@ -35,7 +35,7 @@ criterion = "0.3"
[build-dependencies]
cranelift-codegen-meta = { path = "meta", version = "0.78.0" }
isle = { path = "../isle/isle", version = "=0.78.0", optional = true }
cranelift-isle = { path = "../isle/isle", version = "=0.78.0", optional = true }
miette = { version = "3", features = ["fancy"], optional = true }
sha2 = "0.9.8"
@@ -91,7 +91,7 @@ regalloc-snapshot = ["bincode", "regalloc/enable-serde"]
souper-harvest = ["souper-ir", "souper-ir/stringify"]
# Recompile ISLE DSL source files into their generated Rust code.
rebuild-isle = ["isle", "miette", "cranelift-codegen-meta/rebuild-isle"]
rebuild-isle = ["cranelift-isle", "miette", "cranelift-codegen-meta/rebuild-isle"]
# A hack to skip the ISLE-rebuild logic when testing for determinism
# with the "Meta deterministic check" CI job.

View File

@@ -369,6 +369,8 @@ fn rebuild_isle(
compilation: &IsleCompilation,
manifest: &str,
) -> Result<(), Box<dyn std::error::Error + 'static>> {
use cranelift_isle as isle;
// First, remove the manifest, if any; we will recreate it
// below if the compilation is successful. Ignore error if no
// manifest was present.