From a2756ffbb007ea46f01a5edc28c126988f53eecb Mon Sep 17 00:00:00 2001 From: gwenn Date: Sun, 13 Jun 2021 10:46:00 +0200 Subject: [PATCH] Fix AuthContext / Authorization visibility Fix #972 Breaking change: Action is not visible from root anymore --- src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d16ffa8..ff30cb6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -73,8 +73,6 @@ pub use crate::cache::CachedStatement; pub use crate::column::Column; pub use crate::error::Error; pub use crate::ffi::ErrorCode; -#[cfg(feature = "hooks")] -pub use crate::hooks::Action; #[cfg(feature = "load_extension")] pub use crate::load_extension_guard::LoadExtensionGuard; pub use crate::params::{params_from_iter, Params, ParamsFromIter}; @@ -102,7 +100,7 @@ mod context; #[cfg(feature = "functions")] pub mod functions; #[cfg(feature = "hooks")] -mod hooks; +pub mod hooks; mod inner_connection; #[cfg(feature = "limits")] pub mod limits;