| Crates.io | track2line_lib |
| lib.rs | track2line_lib |
| version | 0.10.0 |
| created_at | 2025-03-27 08:40:39.224402+00 |
| updated_at | 2025-03-27 08:40:39.224402+00 |
| description | It is a lib that converts the name of the audio file output by voisona Talk, etc. by referring to a text file containing the lines of the same name. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1607745 |
| size | 2,227,512 |
this lib version is 0.1.x
this is still doesn't work properly.therefore, if you use this, turn on "experimental" in feature flag.
track2line_lib = { git = "https://github.com/Uliboooo/track2line_lib", tag = "0.3.0" }
use track2line_lib;
fn main() {
let path = PathBuf::from("target_folder_path");
let mut sets = track2line_lib::PathSets::new(&path, "wav", "txt").unwrap();
// print list of path to be changed(not renamed yet)
println!("{}", sets.check().unwrap());
// rename
sets.rename().unwrap();
}
Cargo.toml
[dependencies]
track2line_lib = { git = "https://github.com/Uliboooo/track2line_lib", tag = "v0.8.0", features = ["config"]}
use track2line_lib;
// use default config(wav, txt)
let default_config: Config = track2line_lib::config::Config::default();
//save
default_config.save()
// load
// もしconfigファイルがない場合、デフォルト設定でファイルを作成します
let setting = track2line_lib::config::Config::load();
this is a library for converting track files to line files.