From afc6e258ce0445c804707f7cee2daccde1df937d Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 24 Jun 2024 07:13:44 +0200 Subject: [PATCH 1/2] feat: export `gix_validate` as `validate`. The crate appears in the public API of `gix_index::State::from_tree` but it's types weren't readily available. --- gix/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/gix/src/lib.rs b/gix/src/lib.rs index f193ecd74aa..43d7ef87e25 100644 --- a/gix/src/lib.rs +++ b/gix/src/lib.rs @@ -110,6 +110,7 @@ pub use gix_features::{ progress::{Count, DynNestedProgress, NestedProgress, Progress}, threading, }; +pub use gix_validate as validate; pub use gix_fs as fs; pub use gix_glob as glob; pub use gix_hash as hash; From c8c56aebaac95f0f73220055dc33e6e0ebdb5ced Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 24 Jun 2024 07:18:20 +0200 Subject: [PATCH 2/2] fix: re-export `gix_validate` as it's now part of the public API. This allows calling `State::from_tree()`. --- gix-index/src/lib.rs | 3 +++ gix/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gix-index/src/lib.rs b/gix-index/src/lib.rs index 1e157bdc0d5..86261c3539f 100644 --- a/gix-index/src/lib.rs +++ b/gix-index/src/lib.rs @@ -10,7 +10,10 @@ use bstr::{BStr, ByteSlice}; use std::{ops::Range, path::PathBuf}; use filetime::FileTime; +/// `gix_hash` is made available as it's part of the public API in various places. pub use gix_hash as hash; +/// A re-export to allow calling [`State::from_tree()`]. +pub use gix_validate as validate; /// #[allow(clippy::empty_docs)] diff --git a/gix/src/lib.rs b/gix/src/lib.rs index 43d7ef87e25..e34fea34387 100644 --- a/gix/src/lib.rs +++ b/gix/src/lib.rs @@ -110,7 +110,6 @@ pub use gix_features::{ progress::{Count, DynNestedProgress, NestedProgress, Progress}, threading, }; -pub use gix_validate as validate; pub use gix_fs as fs; pub use gix_glob as glob; pub use gix_hash as hash; @@ -141,6 +140,7 @@ pub use gix_url as url; #[doc(inline)] pub use gix_url::Url; pub use gix_utils as utils; +pub use gix_validate as validate; pub use hash::{oid, ObjectId}; pub mod interrupt;