From df2852351bfeefe22d5ea9317d7eb5ca892fe501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Harabie=C5=84?= Date: Sun, 24 Sep 2017 03:13:50 +0200 Subject: [PATCH] Rename crate to rfat. --- Cargo.lock | 2 +- Cargo.toml | 2 +- examples/sample.rs | 4 ++-- src/lib.rs | 10 +++++----- tests/integration-test.rs | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 29911e7..f518248 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,5 +1,5 @@ [root] -name = "rustfat" +name = "rfat" version = "0.1.0" dependencies = [ "bitflags 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 6e308f3..a9eb02e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "rustfat" +name = "rfat" version = "0.1.0" authors = ["Rafał Harabień "] diff --git a/examples/sample.rs b/examples/sample.rs index bb77a7a..3fe230e 100644 --- a/examples/sample.rs +++ b/examples/sample.rs @@ -1,10 +1,10 @@ -extern crate rustfat; +extern crate rfat; use std::fs::File; use std::io::BufReader; use std::str; -use rustfat::FatFileSystem; +use rfat::FatFileSystem; fn main() { let file = File::open("resources/fat32.img").unwrap(); diff --git a/src/lib.rs b/src/lib.rs index 14d2320..324c433 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,5 @@ #![crate_type = "lib"] -#![crate_name = "rustfat"] +#![crate_name = "rfat"] extern crate byteorder; extern crate chrono; @@ -7,10 +7,10 @@ extern crate chrono; #[macro_use] extern crate bitflags; -pub mod fs; -pub mod dir; -pub mod file; -pub mod table; +mod fs; +mod dir; +mod file; +mod table; pub use fs::*; pub use dir::*; diff --git a/tests/integration-test.rs b/tests/integration-test.rs index 80e76aa..b5e356c 100644 --- a/tests/integration-test.rs +++ b/tests/integration-test.rs @@ -1,11 +1,11 @@ -extern crate rustfat; +extern crate rfat; use std::fs::File; use std::io::{BufReader, SeekFrom}; use std::io::prelude::*; use std::str; -use rustfat::FatFileSystem; +use rfat::FatFileSystem; const TEST_TEXT: &'static str = "Rust is cool!\n"; const FAT12_IMG: &'static str = "resources/fat12.img";