-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
117 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "mwalib" | ||
version = "0.3.0" | ||
version = "0.3.2" | ||
homepage = "https://github.com/MWATelescope/mwalib" | ||
authors = ["Greg Sleap <[email protected]>", | ||
"Christopher H. Jordan <[email protected]>"] | ||
|
@@ -19,21 +19,21 @@ codegen-units = 1 # Set this to 1 in Cargo.toml to allow for maximum size redu | |
crate-type = ["rlib", "staticlib", "cdylib"] | ||
|
||
[dependencies] | ||
anyhow = "1.0.28" | ||
chrono = "0.4.11" | ||
fitsio = "0.15.0" | ||
fitsio-sys = "0.3.0" | ||
lazy_static = "1.4.0" | ||
libc = "0.2.69" | ||
rayon = "1.3.0" | ||
regex = "1.3.7" | ||
anyhow = "1.0.*" | ||
chrono = "0.4.*" | ||
fitsio = "0.15.*" | ||
fitsio-sys = "0.3.*" | ||
lazy_static = "1.4.*" | ||
libc = "0.2.*" | ||
rayon = "1.3.*" | ||
regex = "1.3.*" | ||
|
||
[dev-dependencies] | ||
criterion = "0.3.2" | ||
csv = "1.1.3" | ||
float-cmp = "0.7.0" | ||
structopt = "0.3.14" | ||
tempdir = "0.3.7" | ||
criterion = "0.3.*" | ||
csv = "1.1.*" | ||
float-cmp = "0.7.*" | ||
structopt = "0.3.*" | ||
tempdir = "0.3.*" | ||
|
||
[[bench]] | ||
name = "bench" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CFITSIO (See: https://heasarc.gsfc.nasa.gov/fitsio/) | ||
|
||
Copyright (Unpublished--all rights reserved under the copyright laws of | ||
the United States), U.S. Government as represented by the Administrator | ||
of the National Aeronautics and Space Administration. No copyright is | ||
claimed in the United States under Title 17, U.S. Code. | ||
Permission to freely use, copy, modify, and distribute this software | ||
and its documentation without fee is hereby granted, provided that this | ||
copyright notice and disclaimer of warranty appears in all copies. | ||
DISCLAIMER: | ||
THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT ANY WARRANTY OF ANY KIND, | ||
EITHER EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, | ||
ANY WARRANTY THAT THE SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY | ||
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR | ||
PURPOSE, AND FREEDOM FROM INFRINGEMENT, AND ANY WARRANTY THAT THE | ||
DOCUMENTATION WILL CONFORM TO THE SOFTWARE, OR ANY WARRANTY THAT THE | ||
SOFTWARE WILL BE ERROR FREE. IN NO EVENT SHALL NASA BE LIABLE FOR ANY | ||
DAMAGES, INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT, SPECIAL OR | ||
CONSEQUENTIAL DAMAGES, ARISING OUT OF, RESULTING FROM, OR IN ANY WAY | ||
CONNECTED WITH THIS SOFTWARE, WHETHER OR NOT BASED UPON WARRANTY, | ||
CONTRACT, TORT , OR OTHERWISE, WHETHER OR NOT INJURY WAS SUSTAINED BY | ||
PERSONS OR PROPERTY OR OTHERWISE, AND WHETHER OR NOT LOSS WAS SUSTAINED | ||
FROM, OR AROSE OUT OF THE RESULTS OF, OR USE OF, THE SOFTWARE OR | ||
SERVICES PROVIDED HEREUNDER. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
use std::env; | ||
|
||
fn main() { | ||
// | ||
// Link to shared or static CFITSIO | ||
// | ||
// Check if we have this environment variable | ||
// If we do, then we will link to cfitsio statically | ||
// But if so, you need to have: | ||
// 1. libcfitsio.a in your LD_LIBRARY_PATH or PATH | ||
// AND | ||
// 2. libcfitsio.a needs to have been built with the following ./configure statement: | ||
// ./configure --disable-curl --prefix=/usr/local --enable-reentrant | ||
match env::var("MWALIB_LINK_STATIC_CFITSIO") { | ||
Ok(val) => { | ||
match val.as_str() { | ||
"0" => { | ||
println!("cargo:warning=rustc will link with the shared libcfitsio.so library. Set MWALIB_LINK_STATIC_CFITSIO=1 in your environment to link statically.") | ||
}, | ||
_ => { | ||
println!("cargo:rustc-link-lib=static=cfitsio"); | ||
println!("cargo:warning=rustc will link with the static libcfitsio.a library. Remove MWALIB_LINK_STATIC_CFITSIO from your environment (or set to 0) to link dynamically."); | ||
} | ||
} | ||
}, | ||
Err(_) => println!("cargo:warning=rustc will link with the shared libcfitsio.so library. Set MWALIB_LINK_STATIC_CFITSIO=1 in your environment to link statically."), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
echo "Making release..." | ||
echo "Cleaning up previous release files..." | ||
rm -rf ../target | ||
rm -rf release | ||
echo "Building mwalib..." | ||
cargo build --release -v | ||
cbindgen -l c .. > ../include/mwalib.h | ||
echo "mwalib.h has been regenerated in ../include/mwalib.h" | ||
echo "Packaging up mwalib..." | ||
mkdir -p release | ||
mkdir -p release/lib | ||
mkdir -p release/include | ||
cp ../target/release/libmwalib.a release/lib/. | ||
cp ../target/release/libmwalib.so release/lib/. | ||
cp ../LICENSE release/. | ||
cp ../LICENSE-cfitsio release/. | ||
cp ../CHANGELOG.md release/. | ||
cp ../include/mwalib.h release/include/. | ||
cd release | ||
echo "Taring files..." | ||
tar -czvf libmwalib-0.3.2-linux_x86_64.tar.gz lib/libmwalib.a lib/libmwalib.so include/mwalib.h LICENSE LICENSE-cfitsio CHANGELOG.md | ||
echo "Release complete!" |