telestes
Welcome!
Telestes provides an implementation of Media Types; also formerly known
as MIME Types. This crate emphasizes performance and correctness; as well
as the ability to parse in a const context. It is no_std-enabled.
To get started, check out the [MediaType] and [Essence] types.
Optional Features
alloc- enables the use of types in thealloccrateserde- enables serialization/deserialization usingserdedb- enables theconstdatabase of IANA Media Types
Terminology
The terminology of this crate should follow the terminology broadly used
in the RFCs or other notable documentation; with one exception. Since the
type terminology of a Media Type collides with the Rust type keyword,
we have chosen the terms genus and species to replace the terms for
type and subtype, respectively.
Example
use MediaType;
let mt = new.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
Naming
This crate is named after the character Telestes from the Greek play Seven Against Thebes by Aeschylus. This character is possibly history's first recorded pantomime.
License: Apache-2.0