Nothing Special   »   [go: up one dir, main page]

Skip to content

Rust library for the Asciicast file format used by Asciinema

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

LegNeato/asciicast-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Api documentation.

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:

About

Rust library for the Asciicast file format used by Asciinema

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages