Rename "meta" back to "cranelift-codegen-meta" and publish it.
It appears that having the meta directory crate be inside the codegen directory is not enough to allow codegen to depend on it without it being published. So, let's just publish it.
This commit is contained in:
@@ -22,7 +22,7 @@ target-lexicon = { version = "0.0.3", default-features = false }
|
||||
# accomodated in `tests`.
|
||||
|
||||
[build-dependencies]
|
||||
meta = { path = "meta", version = "0.0.0" }
|
||||
cranelift-codegen-meta = { path = "meta" }
|
||||
|
||||
[features]
|
||||
# The "std" feature enables use of libstd. The "core" feature enables use
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
// The build script expects to be run from the directory where this build.rs file lives. The
|
||||
// current directory is used to find the sources.
|
||||
|
||||
extern crate meta;
|
||||
extern crate cranelift_codegen_meta as meta;
|
||||
|
||||
use std::env;
|
||||
use std::process;
|
||||
@@ -80,11 +80,10 @@ fn main() {
|
||||
// Now that the Python build process is complete, generate files that are
|
||||
// emitted by the `meta` crate.
|
||||
// ------------------------------------------------------------------------
|
||||
// Temporarily disable this while we work out how to publish this crate.
|
||||
//if let Err(err) = meta::gen_types::generate("new_types.rs", &out_dir) {
|
||||
// eprintln!("Error: {}", err);
|
||||
// process::exit(1);
|
||||
//}
|
||||
if let Err(err) = meta::gen_types::generate("new_types.rs", &out_dir) {
|
||||
eprintln!("Error: {}", err);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
fn identify_python() -> &'static str {
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
[package]
|
||||
name = "meta"
|
||||
name = "cranelift-codegen-meta"
|
||||
authors = ["The Cranelift Project Developers"]
|
||||
version = "0.0.0"
|
||||
version = "0.18.0"
|
||||
description = "Metaprogram for cranelift-codegen code generator library"
|
||||
license = "Apache-2.0 WITH LLVM-exception"
|
||||
documentation = "https://cranelift.readthedocs.io/"
|
||||
repository = "https://github.com/CraneStation/cranelift"
|
||||
keywords = ["compile", "compiler", "jit"]
|
||||
publish = false
|
||||
readme = "README.md"
|
||||
|
||||
[badges]
|
||||
maintenance = { status = "experimental" }
|
||||
travis-ci = { repository = "CraneStation/cranelift" }
|
||||
|
||||
2
lib/codegen/meta/README.md
Normal file
2
lib/codegen/meta/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
This crate contains the metaprogram used by cranelift-codegen. It's not
|
||||
useful on its own.
|
||||
Reference in New Issue
Block a user