Skip to main content

Crate hurray

Crate hurray 

Source
Expand description

Hurray is a tensor interchange format. This crate is its name, not its code.

There is nothing to call here. The implementation is split by responsibility, so depend on the piece you need:

CrateWhat it gives you
hurray-coreFormat types: tensor descriptor, element types, layouts, quantization, buffer handles. No I/O.
hurray-ioAsync streaming interchange and the HRRYFILE container.
hurray-ffiThe C ABI, for bindings in other languages.
hurray-inspectA CLI that prints a descriptor as an annotated hex table.

From Python, install pyhurray — the distribution name differs because hurray on PyPI is an unrelated package, but the module is imported as hurray.

cargo add hurray-core

Specification, cookbook and API reference: https://www.pascalgillet.net/hurray/

§Why this crate exists

It holds the umbrella name alongside the crates that do the work, so the obvious name for the project cannot come to mean something else. It deliberately re-exports nothing: a facade would be a second public API to keep in step with hurray-core and would fix the name to one crate’s shape permanently. If an umbrella that pulls the pieces together behind feature flags is ever wanted, it can grow here — that direction is additive, and the reverse would be a breaking removal.