Browse Source

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.
pull/1019/head
Jakob Stoklund Olesen 9 years ago
parent
commit
01ed9fc6c8
  1. 2
      cranelift/src/libcretonne/write.rs
  2. 4
      cranelift/src/libreader/Cargo.toml
  3. 0
      cranelift/src/libreader/lexer.rs
  4. 4
      cranelift/src/libreader/lib.rs
  5. 0
      cranelift/src/libreader/parser.rs
  6. 4
      cranelift/src/test-all.sh
  7. 4
      cranelift/src/tools/Cargo.lock
  8. 2
      cranelift/src/tools/Cargo.toml
  9. 2
      cranelift/src/tools/main.rs

2
cranelift/src/libcretonne/write.rs

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

4
cranelift/src/libctonfile/Cargo.toml → cranelift/src/libreader/Cargo.toml

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

0
cranelift/src/libctonfile/lexer.rs → cranelift/src/libreader/lexer.rs

4
cranelift/src/libctonfile/lib.rs → cranelift/src/libreader/lib.rs

@ -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.
//
// ====------------------------------------------------------------------------------------==== //

0
cranelift/src/libctonfile/parser.rs → cranelift/src/libreader/parser.rs

4
cranelift/src/test-all.sh

@ -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
cranelift/src/tools/Cargo.lock

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

2
cranelift/src/tools/Cargo.toml

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

2
cranelift/src/tools/main.rs

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

Loading…
Cancel
Save