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]
|
[root]
|
||||||
name = "rustfat"
|
name = "rfat"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"bitflags 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rustfat"
|
name = "rfat"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Rafał Harabień <rafalh1992@o2.pl>"]
|
authors = ["Rafał Harabień <rafalh1992@o2.pl>"]
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
extern crate rustfat;
|
extern crate rfat;
|
||||||
|
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::BufReader;
|
use std::io::BufReader;
|
||||||
use std::str;
|
use std::str;
|
||||||
|
|
||||||
use rustfat::FatFileSystem;
|
use rfat::FatFileSystem;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let file = File::open("resources/fat32.img").unwrap();
|
let file = File::open("resources/fat32.img").unwrap();
|
||||||
|
10
src/lib.rs
10
src/lib.rs
@ -1,5 +1,5 @@
|
|||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
#![crate_name = "rustfat"]
|
#![crate_name = "rfat"]
|
||||||
|
|
||||||
extern crate byteorder;
|
extern crate byteorder;
|
||||||
extern crate chrono;
|
extern crate chrono;
|
||||||
@ -7,10 +7,10 @@ extern crate chrono;
|
|||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate bitflags;
|
extern crate bitflags;
|
||||||
|
|
||||||
pub mod fs;
|
mod fs;
|
||||||
pub mod dir;
|
mod dir;
|
||||||
pub mod file;
|
mod file;
|
||||||
pub mod table;
|
mod table;
|
||||||
|
|
||||||
pub use fs::*;
|
pub use fs::*;
|
||||||
pub use dir::*;
|
pub use dir::*;
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
extern crate rustfat;
|
extern crate rfat;
|
||||||
|
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::{BufReader, SeekFrom};
|
use std::io::{BufReader, SeekFrom};
|
||||||
use std::io::prelude::*;
|
use std::io::prelude::*;
|
||||||
use std::str;
|
use std::str;
|
||||||
|
|
||||||
use rustfat::FatFileSystem;
|
use rfat::FatFileSystem;
|
||||||
|
|
||||||
const TEST_TEXT: &'static str = "Rust is cool!\n";
|
const TEST_TEXT: &'static str = "Rust is cool!\n";
|
||||||
const FAT12_IMG: &'static str = "resources/fat12.img";
|
const FAT12_IMG: &'static str = "resources/fat12.img";
|
||||||
|
Loading…
Reference in New Issue
Block a user