xisf-core 0.5.2

Core engine for reading and writing XISF (Extensible Image Serialization Format) files
Documentation
//! The XISF engine: reading and writing the format itself.
//!
//! Written from the [XISF 1.0 specification][spec], which states that anyone
//! may implement it freely. Nothing here derives from libXISF (GPL-3.0) or
//! from the PixInsight Class Library, whose licence forbids this use; see
//! `docs/PLAN.md`.
//!
//! [spec]: https://pixinsight.com/doc/docs/XISF-1.0-spec/XISF-1.0-spec.html
//!
//! A monolithic XISF file is a signature, a header length, the XML header,
//! and then whatever data blocks the header points at:
//!
//! ```text
//! "XISF0100"        8 bytes
//! header length     u32, little-endian
//! reserved          4 bytes, zero
//! XISF header       XML 1.0, UTF-8
//! [data blocks]     addressed by `location="attachment:position:size"`
//! ```

// `alloc` is not linked automatically even in a crate that has `std`, so it
// is named here to make `alloc::` paths resolve. Reaching for the narrowest
// crate that has an item -- `core` where no allocator is needed, `alloc`
// where one is but an operating system is not -- keeps the door open to a
// `no_std` build and marks which parts genuinely need the platform.
extern crate alloc;

pub mod astrometry;
pub mod block;
pub mod codec;
pub mod color;
pub mod distributed;
pub mod error;
pub mod header;
pub mod image;
pub mod layout;
pub mod property;
pub mod reader;
pub mod table;
pub mod writer;

pub use error::{Error, ErrorKind, Result};
pub use reader::{ChecksumStatus, Reader};