Prototype
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "svldcli"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
libsvld = { path = "../libsvld" }
|
||||
can-dbc = "9.1.0"
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user