forked from M-Labs/rust-fatfs
Rename crate to fatfs and add more info to Cargo.toml.
This commit is contained in:
parent
b604b19bde
commit
d97ab1d1e1
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -1,5 +1,5 @@
|
||||
[root]
|
||||
name = "rfat"
|
||||
name = "fatfs"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"bitflags 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@ -37,7 +37,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.31"
|
||||
version = "0.2.32"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
@ -83,7 +83,7 @@ version = "0.1.38"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"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)",
|
||||
"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 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 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-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"
|
||||
|
13
Cargo.toml
13
Cargo.toml
@ -1,7 +1,18 @@
|
||||
[package]
|
||||
name = "rfat"
|
||||
name = "fatfs"
|
||||
version = "0.1.0"
|
||||
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]
|
||||
default = ["chrono"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
extern crate rfat;
|
||||
extern crate fatfs;
|
||||
|
||||
use std::env;
|
||||
use std::fs::File;
|
||||
@ -6,7 +6,7 @@ use std::io::BufReader;
|
||||
use std::io::prelude::*;
|
||||
use std::str;
|
||||
|
||||
use rfat::FatFileSystem;
|
||||
use fatfs::FatFileSystem;
|
||||
|
||||
fn main() {
|
||||
let file = File::open("resources/fat32.img").unwrap();
|
||||
|
@ -1,4 +1,4 @@
|
||||
extern crate rfat;
|
||||
extern crate fatfs;
|
||||
extern crate chrono;
|
||||
|
||||
use std::env;
|
||||
@ -7,7 +7,7 @@ use std::io::BufReader;
|
||||
use std::str;
|
||||
use chrono::{DateTime, Local};
|
||||
|
||||
use rfat::FatFileSystem;
|
||||
use fatfs::FatFileSystem;
|
||||
|
||||
fn format_file_size(size: u64) -> String {
|
||||
const KB: u64 = 1024;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#![crate_type = "lib"]
|
||||
#![crate_name = "rfat"]
|
||||
#![crate_name = "fatfs"]
|
||||
|
||||
extern crate byteorder;
|
||||
extern crate core;
|
||||
|
@ -1,11 +1,11 @@
|
||||
extern crate rfat;
|
||||
extern crate fatfs;
|
||||
|
||||
use std::fs::File;
|
||||
use std::io::{BufReader, SeekFrom};
|
||||
use std::io::prelude::*;
|
||||
use std::str;
|
||||
|
||||
use rfat::{FatFileSystem, FatType, FatDirEntry};
|
||||
use fatfs::{FatFileSystem, FatType, FatDirEntry};
|
||||
|
||||
const TEST_TEXT: &str = "Rust is cool!\n";
|
||||
const FAT12_IMG: &str = "resources/fat12.img";
|
||||
|
Loading…
Reference in New Issue
Block a user