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:
Dan Gohman
2018-08-02 18:38:30 -07:00
parent c4a056a7a0
commit a52c547d0e
4 changed files with 15 additions and 12 deletions

View File

@@ -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

View File

@@ -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 {

View File

@@ -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" }

View File

@@ -0,0 +1,2 @@
This crate contains the metaprogram used by cranelift-codegen. It's not
useful on its own.