Skip to content

Commit c874370

Browse files
committed
Dual License
1 parent 650e4ee commit c874370

File tree

4 files changed

+39
-23
lines changed

4 files changed

+39
-23
lines changed

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

LICENSE.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
License of fftw, fftw-sys crates
2+
================================
3+
4+
`fftw` and `fftw-sys` crates are distributed under dual license based on which backends are linked:
5+
6+
FFTW
7+
------
8+
FFTW is free software and distributed under [GNU General Public License version 2 (GPLv2)](https://www.gnu.org/licenses/gpl-2.0.html),
9+
and FFI codes (`fftw-sys` crate) and Rust binding (`fftw` crate) are also distributed under GPLv2.
10+
11+
Intel MKL
12+
---------
13+
Intel Math Kernel Library (MKL) is distributed under the [Intel Simplified Software License](https://software.intel.com/en-us/license/intel-simplified-software-license).
14+
See also [License FAQ](https://software.intel.com/en-us/mkl/license-faq).
15+
In this case, both `fftw` and `fftw-sys` are distributed under following MIT-license:
16+
17+
MIT License
18+
19+
Copyright (c) 2017-2019 Toshiki Teramura
20+
21+
Permission is hereby granted, free of charge, to any person obtaining a copy
22+
of this software and associated documentation files (the "Software"), to deal
23+
in the Software without restriction, including without limitation the rights
24+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25+
copies of the Software, and to permit persons to whom the Software is
26+
furnished to do so, subject to the following conditions:
27+
28+
The above copyright notice and this permission notice shall be included in all
29+
copies or substantial portions of the Software.
30+
31+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37+
SOFTWARE.

fftw-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = ["Toshiki Teramura <[email protected]>"]
66
description = "unsafe wrapper of FFTW3"
77
repository = "https://github.com/termoshtt/rust-fftw3"
88
keywords = ["fftw"]
9-
license = "GPL-2.0"
9+
license-file = "../LICENSE.md"
1010

1111
[features]
1212
default = ["source"]

fftw/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = ["Toshiki Teramura <[email protected]>"]
66
description = "safe wrapper of FFTW3"
77
repository = "https://github.com/termoshtt/rust-fftw3"
88
keywords = ["fftw"]
9-
license = "MIT"
9+
license-file = "../LICENSE.md"
1010

1111
[features]
1212
default = ["source"]

0 commit comments

Comments
 (0)