vrruiz / xisfits

Convert images from XISF to FITS
MIT License
8 stars 0 forks source link

Ran cargo-diet, upgraded dependencies #20

Closed Razican closed 4 years ago

Razican commented 4 years ago

This removes a bunch of non-needed files from the cargo package, in case you want to publish it in crates.io:

┌───────────────────────────────────────────────────────────┬─────────────┐
│ File                                                      │ Size (Byte) │
├───────────────────────────────────────────────────────────┼─────────────┤
│ .gitignore                                                │          39 │
│ .travis.yml                                               │         999 │
│ tests/images/xisf-image-rgb-256x256-8bits-compressed.xisf │        1177 │
│ travis-helper.sh                                          │        1905 │
│ tests/images/xisf-image-gray-256x256-16bits-zlib.xisf     │       40882 │
│ tests/images/xisf-image-gray-256x256-16bits-zlib_sh.xisf  │       59676 │
│ tests/images/xisf-image-gray-256x256-8bits.xisf           │       69632 │
│ tests/images/xisf-image-rgb-256x256-8bits.xisf            │      204800 │
│ tests/images/xisf-image-gray-256x256-float-32bits.xisf    │      264196 │
│ tests/images/xisf-image-rgb-256x256-16bits.xisf           │      401408 │
│ tests/images/xisf-image-gray-256x256-float-64bits.xisf    │      524296 │
│ tests/images/xisf-image-rgb-256x256-32bits.xisf           │      794624 │
└───────────────────────────────────────────────────────────┴─────────────┘
Saved 98% or 2.4 MB in 12 files (of 2.4 MB and 19 files in entire crate)

I also took the opportunity to upgrade the dependencies.

vrruiz commented 4 years ago

Oh, this looks great. About crates.io... I started working in a cargo library to move the XISF bits to it. What would be more interesting for this repository, I think, is releasing the binaries.

Razican commented 4 years ago

Oh, this looks great. About crates.io... I started working in a cargo library to move the XISF bits to it. What would be more interesting for this repository, I think, is releasing the binaries.

You can actually do both in the same repo, and in the same codebase, by using the Cargo.toml file to define the binaries and the library.