Rename crate to fatfs and add more info to Cargo.toml.

This commit is contained in:
Rafał Harabień 2017-10-06 17:00:38 +02:00
parent b604b19bde
commit d97ab1d1e1
6 changed files with 23 additions and 12 deletions

8
Cargo.lock generated
View File

@ -1,5 +1,5 @@
[root] [root]
name = "rfat" name = "fatfs"
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)",
@ -37,7 +37,7 @@ dependencies = [
[[package]] [[package]]
name = "libc" name = "libc"
version = "0.2.31" version = "0.2.32"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]] [[package]]
@ -83,7 +83,7 @@ version = "0.1.38"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [ dependencies = [
"kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.31 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)",
"redox_syscall 0.1.31 (registry+https://github.com/rust-lang/crates.io-index)", "redox_syscall 0.1.31 (registry+https://github.com/rust-lang/crates.io-index)",
"winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
@ -103,7 +103,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum byteorder 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ff81738b726f5d099632ceaffe7fb65b90212e8dce59d518729e7e8634032d3d" "checksum byteorder 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ff81738b726f5d099632ceaffe7fb65b90212e8dce59d518729e7e8634032d3d"
"checksum chrono 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7c20ebe0b2b08b0aeddba49c609fe7957ba2e33449882cb186a180bc60682fa9" "checksum chrono 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7c20ebe0b2b08b0aeddba49c609fe7957ba2e33449882cb186a180bc60682fa9"
"checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
"checksum libc 0.2.31 (registry+https://github.com/rust-lang/crates.io-index)" = "d1419b2939a0bc44b77feb34661583c7546b532b192feab36249ab584b86856c" "checksum libc 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)" = "56cce3130fd040c28df6f495c8492e5ec5808fb4c9093c310df02b0c8f030148"
"checksum num 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)" = "a311b77ebdc5dd4cf6449d81e4135d9f0e3b153839ac90e648a8ef538f923525" "checksum num 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)" = "a311b77ebdc5dd4cf6449d81e4135d9f0e3b153839ac90e648a8ef538f923525"
"checksum num-integer 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)" = "d1452e8b06e448a07f0e6ebb0bb1d92b8890eea63288c0b627331d53514d0fba" "checksum num-integer 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)" = "d1452e8b06e448a07f0e6ebb0bb1d92b8890eea63288c0b627331d53514d0fba"
"checksum num-iter 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)" = "7485fcc84f85b4ecd0ea527b14189281cf27d60e583ae65ebc9c088b13dffe01" "checksum num-iter 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)" = "7485fcc84f85b4ecd0ea527b14189281cf27d60e583ae65ebc9c088b13dffe01"

View File

@ -1,7 +1,18 @@
[package] [package]
name = "rfat" name = "fatfs"
version = "0.1.0" version = "0.1.0"
authors = ["Rafał Harabień <rafalh1992@o2.pl>"] authors = ["Rafał Harabień <rafalh1992@o2.pl>"]
repository = "https://github.com/rafalh/rust-fat"
readme = "README.md"
keywords = ["fat", "filesystem"]
categories = ["filesystem"]
license = "MIT"
description = """
FAT filesystem library.
"""
[badges]
travis-ci = { repository = "rafalh/rust-fat" }
[features] [features]
default = ["chrono"] default = ["chrono"]

View File

@ -1,4 +1,4 @@
extern crate rfat; extern crate fatfs;
use std::env; use std::env;
use std::fs::File; use std::fs::File;
@ -6,7 +6,7 @@ use std::io::BufReader;
use std::io::prelude::*; use std::io::prelude::*;
use std::str; use std::str;
use rfat::FatFileSystem; use fatfs::FatFileSystem;
fn main() { fn main() {
let file = File::open("resources/fat32.img").unwrap(); let file = File::open("resources/fat32.img").unwrap();

View File

@ -1,4 +1,4 @@
extern crate rfat; extern crate fatfs;
extern crate chrono; extern crate chrono;
use std::env; use std::env;
@ -7,7 +7,7 @@ use std::io::BufReader;
use std::str; use std::str;
use chrono::{DateTime, Local}; use chrono::{DateTime, Local};
use rfat::FatFileSystem; use fatfs::FatFileSystem;
fn format_file_size(size: u64) -> String { fn format_file_size(size: u64) -> String {
const KB: u64 = 1024; const KB: u64 = 1024;

View File

@ -1,5 +1,5 @@
#![crate_type = "lib"] #![crate_type = "lib"]
#![crate_name = "rfat"] #![crate_name = "fatfs"]
extern crate byteorder; extern crate byteorder;
extern crate core; extern crate core;

View File

@ -1,11 +1,11 @@
extern crate rfat; extern crate fatfs;
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 rfat::{FatFileSystem, FatType, FatDirEntry}; use fatfs::{FatFileSystem, FatType, FatDirEntry};
const TEST_TEXT: &str = "Rust is cool!\n"; const TEST_TEXT: &str = "Rust is cool!\n";
const FAT12_IMG: &str = "resources/fat12.img"; const FAT12_IMG: &str = "resources/fat12.img";