Skip to content

Commit 19f5283

Browse files
authored
Merge pull request #69 from rust-math/rust2018
Rust 2018
2 parents cee8877 + 544e388 commit 19f5283

15 files changed

Lines changed: 22 additions & 51 deletions

File tree

fftw-src/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "fftw-src"
33
version = "0.3.0"
44
authors = ["Toshiki Teramura <toshiki.teramura@gmail.com>"]
5+
edition = "2018"
56

67
description = "Source of FFTW"
78
repository = "https://github.com/termoshtt/rust-fftw3"

fftw-src/build.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
extern crate cc;
2-
extern crate failure;
3-
extern crate ftp;
4-
extern crate md5;
5-
extern crate reqwest;
6-
extern crate zip;
7-
81
use failure::*;
92
use std::env::var;
103
use std::fs;

fftw-sys/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "fftw-sys"
33
version = "0.5.0"
44
authors = ["Toshiki Teramura <toshiki.teramura@gmail.com>"]
5+
edition = "2018"
56

67
description = "unsafe wrapper of FFTW3"
78
repository = "https://github.com/termoshtt/rust-fftw3"

fftw-sys/src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
#![allow(non_camel_case_types)]
22

33
#[cfg(feature = "source")]
4-
extern crate fftw_src;
4+
extern crate fftw_src as ffi;
55

66
#[cfg(feature = "intel-mkl")]
7-
extern crate intel_mkl_src;
8-
9-
extern crate libc;
10-
extern crate num_complex;
7+
extern crate intel_mkl_src as ffi;
118

129
mod test;
1310

fftw/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "fftw"
33
version = "0.6.0"
44
authors = ["Toshiki Teramura <toshiki.teramura@gmail.com>"]
5+
edition = "2018"
56

67
description = "safe wrapper of FFTW3"
78
repository = "https://github.com/termoshtt/rust-fftw3"

fftw/src/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Array with SIMD alignment
22
3+
use crate::types::*;
34
use ffi;
4-
use types::*;
55

66
use num_traits::Zero;
77
use std::ops::{Deref, DerefMut};

fftw/src/error.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
use array::Alignment;
1+
use crate::array::Alignment;
2+
use failure::Fail;
23

34
pub type Result<T> = ::std::result::Result<T, Error>;
45

fftw/src/lib.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,9 @@
4242
//! c2r.c2r(&mut a, &mut b).unwrap();
4343
//! ```
4444
45-
#[macro_use]
46-
extern crate lazy_static;
47-
#[macro_use]
48-
extern crate failure;
49-
#[macro_use]
50-
extern crate bitflags;
51-
extern crate num_complex;
52-
extern crate num_traits;
53-
5445
extern crate fftw_sys as ffi;
5546

47+
use lazy_static::lazy_static;
5648
use std::sync::Mutex;
5749

5850
lazy_static! {

fftw/src/plan.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
//! See also [Using Plans] in the original document
44
//! [Using Plans]: http://www.fftw.org/fftw3_doc/Using-Plans.html
55
6-
use array::{alignment_of, AlignedAllocable, AlignedVec, Alignment};
7-
use error::*;
8-
use ffi::*;
9-
use types::{c32, c64, Flag, R2RKind, Sign};
6+
use crate::array::{alignment_of, AlignedAllocable, AlignedVec, Alignment};
7+
use crate::error::*;
8+
use crate::ffi::*;
9+
use crate::types::{c32, c64, Flag, R2RKind, Sign};
1010

1111
use std::marker::PhantomData;
1212

fftw/src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Rusty types for manipulating FFTW
22
3+
use bitflags::bitflags;
34
pub use ffi::fftw_complex as c64;
45
pub use ffi::fftwf_complex as c32;
56

0 commit comments

Comments
 (0)