Prototype

This commit is contained in:
2026-05-16 23:04:58 +02:00
commit b620a8a2b4
11 changed files with 1522 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
[package]
name = "svldcli"
version = "0.1.0"
edition = "2024"
[dependencies]
libsvld = { path = "../libsvld" }
can-dbc = "9.1.0"
+15
View File
@@ -0,0 +1,15 @@
use std::{fs, path::Path};
use can_dbc::Dbc;
fn main() {
let data =
fs::read_to_string("./_reference/RT15evo_v8.dbc").expect("Unable to read input file");
let dbc = Dbc::try_from(data.as_str()).expect("Failed to parse dbc file");
let args: Vec::<_> = std::env::args().collect();
let asc_path = Path::new(&args[1]);
let output_dir = Path::new(&args[2]);
libsvld::decode(&dbc, asc_path, output_dir);
}