Mercurial > public > mercurial-scm > hg-stable
comparison rust/hg-core/src/lib.rs @ 52336: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 |
comparison
equal
deleted
inserted
replaced
52335:b422acba55f1 | 52336:04b9a56c2d25 |
---|---|
14 pub mod discovery; | 14 pub mod discovery; |
15 pub mod exit_codes; | 15 pub mod exit_codes; |
16 pub mod fncache; | 16 pub mod fncache; |
17 pub mod requirements; | 17 pub mod requirements; |
18 pub mod testing; // unconditionally built, for use from integration tests | 18 pub mod testing; // unconditionally built, for use from integration tests |
19 pub use dirstate::{ | 19 |
20 dirs_multiset::{DirsMultiset, DirsMultisetIter}, | 20 // Export very common type to make discovery easier |
21 status::{ | 21 pub use dirstate::DirstateParents; |
22 BadMatch, BadType, DirstateStatus, HgPathCow, StatusError, | |
23 StatusOptions, | |
24 }, | |
25 DirstateParents, | |
26 }; | |
27 pub mod copy_tracing; | 22 pub mod copy_tracing; |
28 pub mod filepatterns; | 23 pub mod filepatterns; |
29 pub mod matchers; | 24 pub mod matchers; |
30 pub mod repo; | 25 pub mod repo; |
31 pub mod revlog; | 26 pub mod revlog; |