From 9e324e9dd19b7490511818435126c28a6254ea40 Mon Sep 17 00:00:00 2001 From: Putta Khunchalee Date: Sat, 28 Sep 2024 14:21:04 +0700 Subject: [PATCH] Makes directory module private and re-export its items --- README.md | 6 ++++++ src/lib.rs | 8 ++++---- tests/integration_test.rs | 3 +-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 79428dc..eec1559 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,12 @@ for item in root { } ``` +## Breaking changes + +### 0.1 to 0.2 + +My Rust skill has improved a lot since version 0.1 so I take this semver breaking change to make a lot of things better. That mean version 0.2 is not compatible with 0.1 in any ways. + ## License MIT diff --git a/src/lib.rs b/src/lib.rs index 4cd0009..d51db8d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,7 @@ +pub use self::directory::*; +pub use self::disk::*; + use self::cluster::ClustersReader; -use self::directory::{Directory, Item}; use self::entries::{ClusterAllocation, EntriesReader, EntryType, FileEntry}; use self::fat::Fat; use self::file::File; @@ -9,10 +11,8 @@ use core::fmt::Debug; use std::sync::Arc; use thiserror::Error; -pub use self::disk::*; - pub mod cluster; -pub mod directory; +mod directory; mod disk; pub mod entries; pub mod fat; diff --git a/tests/integration_test.rs b/tests/integration_test.rs index c9ea357..6da6750 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -1,6 +1,5 @@ -use exfat::directory::Item; use exfat::timestamp::Timestamp; -use exfat::Root; +use exfat::{Item, Root}; use std::fs::File; use std::io::Read; use std::path::PathBuf;