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:
@@ -2,7 +2,7 @@
|
|||||||
//!
|
//!
|
||||||
//! The `write` module provides the `write_function` function which converts an IL `Function` to an
|
//! 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
|
//! equivalent textual representation. This textual representation can be read back by the
|
||||||
//! `ctonfile` crate.
|
//! `cretonne-reader` crate.
|
||||||
|
|
||||||
use std::io::{self, Write};
|
use std::io::{self, Write};
|
||||||
use repr::Function;
|
use repr::Function;
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
[package]
|
[package]
|
||||||
authors = ["The Cretonne Project Developers"]
|
authors = ["The Cretonne Project Developers"]
|
||||||
name = "ctonfile"
|
name = "cretonne-reader"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "ctonfile"
|
name = "cton_reader"
|
||||||
path = "lib.rs"
|
path = "lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
@@ -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.
|
// for testing Cretonne, but is not essential for a JIT compiler.
|
||||||
//
|
//
|
||||||
// ====------------------------------------------------------------------------------------==== //
|
// ====------------------------------------------------------------------------------------==== //
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd $(dirname "$0")/tools
|
cd $(dirname "$0")/tools
|
||||||
cargo test -p cretonne -p ctonfile -p cretonne-tools
|
cargo test -p cretonne -p cretonne-reader -p cretonne-tools
|
||||||
cargo doc -p cretonne -p ctonfile -p cretonne-tools
|
cargo doc -p cretonne -p cretonne-reader -p cretonne-tools
|
||||||
|
|||||||
4
cranelift/src/tools/Cargo.lock
generated
4
cranelift/src/tools/Cargo.lock
generated
@@ -3,7 +3,7 @@ name = "cretonne-tools"
|
|||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cretonne 0.0.0",
|
"cretonne 0.0.0",
|
||||||
"ctonfile 0.0.0",
|
"cretonne-reader 0.0.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -11,7 +11,7 @@ name = "cretonne"
|
|||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ctonfile"
|
name = "cretonne-reader"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cretonne 0.0.0",
|
"cretonne 0.0.0",
|
||||||
|
|||||||
@@ -11,4 +11,4 @@ path = "main.rs"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cretonne = { path = "../libcretonne" }
|
cretonne = { path = "../libcretonne" }
|
||||||
ctonfile = { path = "../libctonfile" }
|
cretonne-reader = { path = "../libreader" }
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
extern crate cretonne;
|
extern crate cretonne;
|
||||||
extern crate ctonfile;
|
extern crate cton_reader;
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|||||||
Reference in New Issue
Block a user