trying to use svd2rust in my build.rs, however, I'm a bit confused with Config.
This is an example of command I ran to simply create the files I needed
svd2rust -g --target=riscv -i board.svd.
Now, how can I do this with Config and pass it to generate?
let conf = svd2rust::Config {
target: svd2rust::Target::RISCV
};
// Generate the svd file to a string in RAM
let pac_file = svd2rust::generate(&svd, &conf).expect("couldn't generate file with svd2rust");
is there anyway of creating a default "Config" with all the struct parameters?
hello.
trying to use
svd2rust
in mybuild.rs
, however, I'm a bit confused withConfig
.This is an example of command I ran to simply create the files I needed
svd2rust -g --target=riscv -i board.svd
.Now, how can I do this with Config and pass it to
generate
?is there anyway of creating a default "Config" with all the struct parameters?