7 releases

Uses old Rust 2015

0.2.3 May 22, 2017
0.2.2 Mar 20, 2017
0.1.2 Mar 12, 2017
0.1.1 Feb 12, 2017

#2428 in Parser implementations

Download history 108/week @ 2024-03-12 133/week @ 2024-03-19 94/week @ 2024-03-26 131/week @ 2024-04-02 101/week @ 2024-04-09 100/week @ 2024-04-16 139/week @ 2024-04-23 137/week @ 2024-04-30 107/week @ 2024-05-07 504/week @ 2024-05-14 137/week @ 2024-05-21 113/week @ 2024-05-28 82/week @ 2024-06-04 125/week @ 2024-06-11 125/week @ 2024-06-18 110/week @ 2024-06-25

457 downloads per month
Used in 10 crates (3 directly)

CC0 license

61KB
1K SLoC

vobsub: A Rust library for decoding VobSub-format (sub/idx) subtitles

Latest version License Build Status Build status Documentation

For documentation and example code, please see the API docs.

Contributing

Your feedback and contributions are welcome! For more information, see the subtitles-rs project.

Fuzz testing

We test some portions of this crate using the excellent cargo fuzz tool. To run these tests, install cargo fuzz according to its documentation. Then run:

env RUST_BACKTRACE=1 rustup run nightly cargo fuzz run fuzzer_script_1 -- \
    -dict=dictionary.txt -detect_leaks=0

You can also pass -jobs N to run multiple jobs in parallel. By default, this is limited to half the number of available CPU cores.

If it finds a crash, then copy the test case it produces back into our standard test suite and run the tests:

cp fuzz/artifacts/* ../fixtures/invalid
cargo test

This will allow us to tell whether the bug is fixed, and to detect any regressions. Once the bug is fixed, call cargo fuzz run again (as shown above).

Dependencies

~17MB
~186K SLoC