#ascii #asciinema #tty #file-format

asciicast

A library for the Asciicast file format used by Asciinema

3 unstable releases

Uses old Rust 2015

0.2.2 Apr 4, 2018
0.2.1 Mar 22, 2018
0.2.0 Mar 22, 2018
0.1.1 Feb 28, 2018
0.1.0 Feb 28, 2018

#8 in #asciinema

Download history 9/week @ 2024-07-20 16/week @ 2024-07-27 5/week @ 2024-08-03 1/week @ 2024-08-10 2/week @ 2024-08-17 26/week @ 2024-08-24 96/week @ 2024-08-31 55/week @ 2024-09-07 147/week @ 2024-09-14 132/week @ 2024-09-21 41/week @ 2024-09-28 23/week @ 2024-10-05 19/week @ 2024-10-12 63/week @ 2024-10-19 22/week @ 2024-10-26 28/week @ 2024-11-02

137 downloads per month
Used in 2 crates

MIT/Apache

14KB
252 lines

asciicast

Build Status

A Rust library for working with the Asciicast file format. Asciicast is used by Asciinema to play back terminal recordings.

Installation

asciicast is available on crates.io and can be included in your Cargo enabled project like this:

[dependencies]
asciicast = "0.2.2"

Then include it in your code like this:

extern crate asciicast;

Usage

This library exports version 2 of the asciicast format by default. Version 1 will eventually be available as a subcrate.

Example (v2)

extern crate asciicast;

let entry = asciicast::Entry {
    time: 1.234,
    event_type: asciicast::EventType::Output,
    event_data: String::new("text data"),
};

println!("{:?}", entry);

License

asciicast is licensed under either of the following, at your option:

Dependencies

~0.7–2MB
~40K SLoC