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

24
Cargo.lock generated
View File

@@ -539,10 +539,10 @@ dependencies = [
"cranelift-codegen-meta", "cranelift-codegen-meta",
"cranelift-codegen-shared", "cranelift-codegen-shared",
"cranelift-entity", "cranelift-entity",
"cranelift-isle",
"criterion", "criterion",
"gimli", "gimli",
"hashbrown", "hashbrown",
"isle",
"log", "log",
"miette", "miette",
"regalloc", "regalloc",
@@ -625,6 +625,15 @@ dependencies = [
"thiserror", "thiserror",
] ]
[[package]]
name = "cranelift-isle"
version = "0.78.0"
dependencies = [
"log",
"miette",
"thiserror",
]
[[package]] [[package]]
name = "cranelift-jit" name = "cranelift-jit"
version = "0.78.0" version = "0.78.0"
@@ -1420,21 +1429,12 @@ version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "616cde7c720bb2bb5824a224687d8f77bfd38922027f01d825cd7453be5099fb" checksum = "616cde7c720bb2bb5824a224687d8f77bfd38922027f01d825cd7453be5099fb"
[[package]]
name = "isle"
version = "0.78.0"
dependencies = [
"log",
"miette",
"thiserror",
]
[[package]] [[package]]
name = "isle-fuzz" name = "isle-fuzz"
version = "0.0.0" version = "0.0.0"
dependencies = [ dependencies = [
"cranelift-isle",
"env_logger 0.9.0", "env_logger 0.9.0",
"isle",
"libfuzzer-sys", "libfuzzer-sys",
"log", "log",
] ]
@@ -1443,8 +1443,8 @@ dependencies = [
name = "islec" name = "islec"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"cranelift-isle",
"env_logger 0.8.3", "env_logger 0.8.3",
"isle",
"miette", "miette",
"structopt", "structopt",
] ]

View File

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

View File

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

View File

@@ -10,7 +10,7 @@ cargo-fuzz = true
[dependencies] [dependencies]
env_logger = { version = "0.9.0", default-features = false } env_logger = { version = "0.9.0", default-features = false }
isle = { path = "../isle" } cranelift-isle = { path = "../isle" }
libfuzzer-sys = "0.4" libfuzzer-sys = "0.4"
log = "0.4.14" log = "0.4.14"

View File

@@ -3,7 +3,7 @@ authors = ["The Cranelift Project Developers"]
description = "ISLE: Instruction Selection and Lowering Expressions. A domain-specific language for instruction selection in Cranelift." description = "ISLE: Instruction Selection and Lowering Expressions. A domain-specific language for instruction selection in Cranelift."
edition = "2018" edition = "2018"
license = "Apache-2.0 WITH LLVM-exception" license = "Apache-2.0 WITH LLVM-exception"
name = "isle" name = "cranelift-isle"
readme = "../README.md" readme = "../README.md"
repository = "https://github.com/bytecodealliance/wasmtime/tree/main/cranelift/isle" repository = "https://github.com/bytecodealliance/wasmtime/tree/main/cranelift/isle"
version = "0.78.0" version = "0.78.0"

View File

@@ -7,7 +7,7 @@ license = "Apache-2.0 WITH LLVM-exception"
publish = false publish = false
[dependencies] [dependencies]
isle = { version = "*", path = "../isle/" } cranelift-isle = { version = "*", path = "../isle/" }
env_logger = { version = "0.8", default-features = false } env_logger = { version = "0.8", default-features = false }
miette = { version = "3.0.0", features = ["fancy"] } miette = { version = "3.0.0", features = ["fancy"] }
structopt = "0.3.23" structopt = "0.3.23"

View File

@@ -1,4 +1,4 @@
use isle::{compile, lexer, parser}; use cranelift_isle::{compile, lexer, parser};
use miette::{Context, IntoDiagnostic, Result}; use miette::{Context, IntoDiagnostic, Result};
use std::{ use std::{
fs, fs,

View File

@@ -18,7 +18,7 @@ use std::time::Duration;
// note that this list must be topologically sorted by dependencies // note that this list must be topologically sorted by dependencies
const CRATES_TO_PUBLISH: &[&str] = &[ const CRATES_TO_PUBLISH: &[&str] = &[
// cranelift // cranelift
"isle", "cranelift-isle",
"cranelift-entity", "cranelift-entity",
"wasmtime-types", "wasmtime-types",
"cranelift-bforest", "cranelift-bforest",