From cbba5147c180c593befd0697007d2940613234ed Mon Sep 17 00:00:00 2001 From: Yoan Lecoq Date: Sat, 15 May 2021 10:44:48 +0200 Subject: [PATCH] Use pub extern crate for those that contain useful traits; mention #75 --- src/lib.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 17f6e50..8bc486b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -49,17 +49,19 @@ mod vtest; #[cfg(feature = "serde")] #[macro_use] -extern crate serde; +pub extern crate serde; #[cfg(feature = "mint")] -extern crate mint; +pub extern crate mint; + +pub extern crate num_integer; +pub extern crate num_traits; -extern crate num_integer; -extern crate num_traits; // NOTE: Allow unused imports here, because usage depends on which features are enabled. #[allow(unused_imports)] #[macro_use] -extern crate approx; +pub extern crate approx; + #[allow(unused_imports)] #[macro_use] extern crate static_assertions;