Edition 2018: remove useless extern crate declarations
This keeps all those with a rename, macro import or other function.
This commit is contained in:
parent
6ebb768309
commit
a4f11c3393
|
@ -2,9 +2,6 @@
|
|||
#![allow(unused_macros)]
|
||||
|
||||
extern crate nalgebra as na;
|
||||
extern crate rand;
|
||||
extern crate test;
|
||||
extern crate typenum;
|
||||
|
||||
#[macro_use]
|
||||
extern crate criterion;
|
||||
|
@ -35,4 +32,4 @@ criterion_main!(
|
|||
linalg::solve,
|
||||
linalg::svd,
|
||||
linalg::symmetric_eigen,
|
||||
);
|
||||
);
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
extern crate alga;
|
||||
extern crate nalgebra as na;
|
||||
|
||||
use alga::linear::FiniteDimInnerSpace;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
extern crate alga;
|
||||
extern crate nalgebra as na;
|
||||
|
||||
use alga::linear::Transformation;
|
||||
|
@ -36,4 +35,4 @@ fn main() {
|
|||
// They both return the same result.
|
||||
assert!(result1 == Vector3::new(100001.0, 200002.0, 300003.0));
|
||||
assert!(result2 == Vector3::new(100001.0, 200002.0, 300003.0));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
extern crate alga;
|
||||
extern crate nalgebra as na;
|
||||
|
||||
use alga::general::{RealField, RingCommutative};
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
extern crate alga;
|
||||
#[macro_use]
|
||||
extern crate approx;
|
||||
extern crate nalgebra as na;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
extern crate alga;
|
||||
extern crate nalgebra as na;
|
||||
|
||||
use na::{Matrix4, Point3, Vector3, Vector4};
|
||||
|
|
|
@ -116,7 +116,6 @@
|
|||
extern crate num_traits as num;
|
||||
#[macro_use]
|
||||
extern crate approx;
|
||||
extern crate alga;
|
||||
extern crate nalgebra as na;
|
||||
|
||||
pub use crate::aliases::*;
|
||||
|
|
|
@ -2,7 +2,5 @@
|
|||
|
||||
extern crate nalgebra as na;
|
||||
extern crate nalgebra_lapack as nl;
|
||||
extern crate rand;
|
||||
extern crate test;
|
||||
|
||||
mod linalg;
|
||||
|
|
|
@ -73,11 +73,7 @@
|
|||
html_root_url = "https://nalgebra.org/rustdoc"
|
||||
)]
|
||||
|
||||
extern crate alga;
|
||||
extern crate lapack;
|
||||
extern crate lapack_src;
|
||||
extern crate nalgebra as na;
|
||||
extern crate num_complex;
|
||||
extern crate num_traits as num;
|
||||
|
||||
mod lapack_check;
|
||||
|
|
|
@ -21,8 +21,6 @@ impl<N: ComplexField, D: Dim, S: Storage<N, D>> Vector<N, D, S> {
|
|||
/// # Examples:
|
||||
///
|
||||
/// ```
|
||||
/// # extern crate num_complex;
|
||||
/// # extern crate nalgebra;
|
||||
/// # use num_complex::Complex;
|
||||
/// # use nalgebra::Vector3;
|
||||
/// let vec = Vector3::new(Complex::new(11.0, 3.0), Complex::new(-15.0, 0.0), Complex::new(13.0, 5.0));
|
||||
|
|
|
@ -84,7 +84,6 @@ impl<N: RealField> UnitComplex<N> {
|
|||
///
|
||||
/// # Example
|
||||
/// ```
|
||||
/// # extern crate num_complex;
|
||||
/// # use num_complex::Complex;
|
||||
/// # use nalgebra::UnitComplex;
|
||||
/// let angle = 1.78f32;
|
||||
|
@ -373,4 +372,4 @@ impl<N: RealField> UlpsEq for UnitComplex<N> {
|
|||
self.re.ulps_eq(&other.re, epsilon, max_ulps)
|
||||
&& self.im.ulps_eq(&other.im, epsilon, max_ulps)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
21
src/lib.rs
21
src/lib.rs
|
@ -89,32 +89,13 @@ an optimized set of tools for computer graphics and physics. Those features incl
|
|||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
#![cfg_attr(all(feature = "alloc", not(feature = "std")), feature(alloc))]
|
||||
|
||||
#[cfg(feature = "arbitrary")]
|
||||
extern crate quickcheck;
|
||||
|
||||
#[cfg(feature = "serde")]
|
||||
extern crate serde;
|
||||
#[cfg(feature = "serde")]
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
#[cfg(feature = "abomonation-serialize")]
|
||||
extern crate abomonation;
|
||||
|
||||
#[cfg(feature = "mint")]
|
||||
extern crate mint;
|
||||
|
||||
#[macro_use]
|
||||
extern crate approx;
|
||||
extern crate generic_array;
|
||||
#[cfg(feature = "std")]
|
||||
extern crate matrixmultiply;
|
||||
extern crate num_complex;
|
||||
extern crate num_traits as num;
|
||||
extern crate num_rational;
|
||||
extern crate typenum;
|
||||
|
||||
extern crate alga;
|
||||
|
||||
#[cfg(all(feature = "alloc", not(feature = "std")))]
|
||||
extern crate alloc;
|
||||
|
@ -122,8 +103,6 @@ extern crate alloc;
|
|||
#[cfg(not(feature = "std"))]
|
||||
extern crate core as std;
|
||||
|
||||
#[cfg(feature = "io")]
|
||||
extern crate pest;
|
||||
#[macro_use]
|
||||
#[cfg(feature = "io")]
|
||||
extern crate pest_derive;
|
||||
|
|
|
@ -1,18 +1,10 @@
|
|||
#[cfg(feature = "abomonation-serialize")]
|
||||
extern crate abomonation;
|
||||
extern crate alga;
|
||||
#[macro_use]
|
||||
extern crate approx;
|
||||
#[cfg(feature = "mint")]
|
||||
extern crate mint;
|
||||
extern crate nalgebra as na;
|
||||
extern crate num_traits as num;
|
||||
#[cfg(feature = "arbitrary")]
|
||||
#[macro_use]
|
||||
extern crate quickcheck;
|
||||
extern crate rand;
|
||||
extern crate serde_json;
|
||||
extern crate num_complex;
|
||||
|
||||
mod core;
|
||||
mod geometry;
|
||||
|
|
Loading…
Reference in New Issue