| Crates.io | cdtext |
| lib.rs | cdtext |
| version | 0.1.0 |
| created_at | 2025-08-12 09:57:20.489686+00 |
| updated_at | 2025-08-12 09:57:20.489686+00 |
| description | A rough implementation of CD-Text parser. |
| homepage | |
| repository | https://github.com/NDRAEY/cdtext |
| max_upload_size | |
| id | 1791762 |
| size | 14,211 |
A rough implementation of CD-Text parser. This crate can be used to read CD-Text binary data given by CD drive.
See examples/parse.rs for more info.
To dump the CD-Text info from your CD in Linux, open your terminal and run following command:
cdrecord dev=/dev/srX -vv -toc
Where
Xis your drive number.
cdrecord will print some info into console, and create a cdtext.dat file.
Firstly, load data from somewhere by using std::fs::read or use any function that can give you a slice of u8.
Then create a parser:
let cdtext = CDText::from_data_with_length(&data);
Then parse:
let data: Vec<cdtext::CDTextEntry> = cdtext.parse();
Now data is ready for further processing.
See docs for more information.