diff rust/hg-core/src/lib.rs @ 52300:04b9a56c2d25

rust-lib: only export very common types to the top of the crate This was done very early in the Rust project's lifecycle and I had very little Rust experience. Let's keep the `DirstateParents` since they'll pop up in all higher-level code and make the rest more explicit imports to make the imports less confusing and the lib less cluttered.
author Rapha?l Gom?s <rgomes@octobus.net>
date Mon, 04 Nov 2024 11:13:05 +0100
parents b422acba55f1
children 79e8118cd846
line wrap: on
line diff
--- a/rust/hg-core/src/lib.rs	Mon Nov 04 11:07:05 2024 +0100
+++ b/rust/hg-core/src/lib.rs	Mon Nov 04 11:13:05 2024 +0100
@@ -16,14 +16,9 @@
 pub mod fncache;
 pub mod requirements;
 pub mod testing; // unconditionally built, for use from integration tests
-pub use dirstate::{
-    dirs_multiset::{DirsMultiset, DirsMultisetIter},
-    status::{
-        BadMatch, BadType, DirstateStatus, HgPathCow, StatusError,
-        StatusOptions,
-    },
-    DirstateParents,
-};
+
+// Export very common type to make discovery easier
+pub use dirstate::DirstateParents;
 pub mod copy_tracing;
 pub mod filepatterns;
 pub mod matchers;