forked from M-Labs/rust-fatfs
Rename crate to rfat.
This commit is contained in:
parent
6b6759802a
commit
df2852351b
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -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)",
|
||||
|
@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "rustfat"
|
||||
name = "rfat"
|
||||
version = "0.1.0"
|
||||
authors = ["Rafał Harabień <rafalh1992@o2.pl>"]
|
||||
|
||||
|
@ -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();
|
||||
|
10
src/lib.rs
10
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::*;
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user