Rename libraries

libctonfile -> libreader.

This library will only provide .cton file reading/parsing services which are
not needed after deployment.

Code for writing .cton files lives in the main cretonne library because it is
fairly small, and because it is useful for extracting test cases from a
deployed library.
This commit is contained in:
Jakob Stoklund Olesen
2016-04-29 14:32:10 -07:00
parent ddea422ceb
commit 810a90e322
9 changed files with 11 additions and 11 deletions

View File

@@ -2,7 +2,7 @@
//!
//! The `write` module provides the `write_function` function which converts an IL `Function` to an
//! equivalent textual representation. This textual representation can be read back by the
//! `ctonfile` crate.
//! `cretonne-reader` crate.
use std::io::{self, Write};
use repr::Function;

View File

@@ -1,11 +1,11 @@
[package]
authors = ["The Cretonne Project Developers"]
name = "ctonfile"
name = "cretonne-reader"
version = "0.0.0"
publish = false
[lib]
name = "ctonfile"
name = "cton_reader"
path = "lib.rs"
[dependencies]

View File

@@ -1,11 +1,11 @@
// ====------------------------------------------------------------------------------------==== //
//
// Cretonne file read/write library.
// Cretonne file reader library.
//
// ====------------------------------------------------------------------------------------==== //
//
// The libctonfile library supports reading and writing .cton files. This functionality is needed
// The cton_reader library supports reading and writing .cton files. This functionality is needed
// for testing Cretonne, but is not essential for a JIT compiler.
//
// ====------------------------------------------------------------------------------------==== //

View File

@@ -1,4 +1,4 @@
#!/bin/bash
cd $(dirname "$0")/tools
cargo test -p cretonne -p ctonfile -p cretonne-tools
cargo doc -p cretonne -p ctonfile -p cretonne-tools
cargo test -p cretonne -p cretonne-reader -p cretonne-tools
cargo doc -p cretonne -p cretonne-reader -p cretonne-tools

4
src/tools/Cargo.lock generated
View File

@@ -3,7 +3,7 @@ name = "cretonne-tools"
version = "0.0.0"
dependencies = [
"cretonne 0.0.0",
"ctonfile 0.0.0",
"cretonne-reader 0.0.0",
]
[[package]]
@@ -11,7 +11,7 @@ name = "cretonne"
version = "0.0.0"
[[package]]
name = "ctonfile"
name = "cretonne-reader"
version = "0.0.0"
dependencies = [
"cretonne 0.0.0",

View File

@@ -11,4 +11,4 @@ path = "main.rs"
[dependencies]
cretonne = { path = "../libcretonne" }
ctonfile = { path = "../libctonfile" }
cretonne-reader = { path = "../libreader" }

View File

@@ -1,5 +1,5 @@
extern crate cretonne;
extern crate ctonfile;
extern crate cton_reader;
fn main() {}