Skip to content

Commit

Permalink
Use pub extern crate for those that contain useful traits; mention #75
Browse files Browse the repository at this point in the history
  • Loading branch information
yoanlcq committed May 15, 2021
1 parent 837cd9b commit cbba514
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cbba514

Please sign in to comment.