Add some scaffolding for building more crates.

The src/tools directory contains the cretonne-tools crate which will build
binaries for testing cretonne.

The src/libctonfile directory contains the ctonfile library crate which
provides reading and writing of .cton files.
This commit is contained in:
Jakob Stoklund Olesen
2016-04-08 11:22:30 -07:00
parent 661ac9e7ad
commit 9a6f79a9ba
8 changed files with 69 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
[package]
authors = ["The Cretonne Project Developers"]
name = "ctonfile"
version = "0.0.0"
publish = false
[lib]
name = "ctonfile"
path = "lib.rs"
[dependencies]
cretonne = { path = "../libcretonne" }

View File

@@ -0,0 +1,12 @@
// ====------------------------------------------------------------------------------------==== //
//
// Cretonne file read/write library
//
// ====------------------------------------------------------------------------------------==== //
//
// The libctonfile library supports reading and writing .cton files. This functionality is needed
// for testing Cretonne, but is not essential for a JIT compiler.
extern crate cretonne;
pub mod parser;

View File

@@ -0,0 +1,2 @@
use cretonne;