mynd-core 0.2.0

Format-neutral no_std image types for the mynd ecosystem.
Documentation
  • Coverage
  • 100%
    23 out of 23 items documented0 out of 0 items with examples
  • Size
  • Source code size: 50.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 878.3 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • valkyoth/mynd
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • eldryoth

mynd-core

Support crate for mynd: format-neutral, no_std image foundations shared by Mynd's codecs and processing crates.

Most users should depend on the facade crate:

[dependencies]
mynd = { version = "0.4.0", default-features = false }

mynd-core is published separately to maintain small implementation boundaries and permit expert integrations. It is not the default application-facing API.

Expert users who only need the validated primitives may depend directly on:

[dependencies]
mynd-core = { version = "0.2.0", default-features = false }

Current status

Version 0.2.0 provides validated geometry: nonzero image dimensions, contained nonempty rectangles, aligned nonempty plane layouts, and exact target-width output lengths. Layout constructors reject zero fields, invalid strides, misalignment, overlap, arithmetic overflow, and values that cannot fit the target's usize.

These are storage-neutral prerequisites. Pixel/sample formats, chroma and alpha semantics, slice-backed views, allocation, and codecs remain unavailable until their staged releases in the version plan.

Features

Feature Default Purpose
alloc No Reserved for allocation-aware core APIs
std No Enables standard-library integration and implies alloc

Security posture

  • no_std is the baseline; the default feature set is empty.
  • The only runtime dependency is the first-party, dependency-free mynd-math.
  • Unsafe code is forbidden by workspace policy.
  • Dimensions, strides, offsets, last-row extents, and plane-set output lengths are validated with checked arithmetic before becoming usable values.
  • Malformed untrusted input must not panic, over-allocate, or perform unbounded work.

Security requirements and disclosure instructions live in the repository's threat model and security policy.

Compatibility

The supported MSRV is Rust 1.90.0. Rust 1.90.0 through 1.97.1 are covered by the workspace compatibility matrix, with 1.97.1 used for development and release verification.

License

Licensed under either Apache-2.0 or MIT, at your option.