Skip to content

Commit 68b027c

Browse files
committed
chore: upgrade to can-dbc v7
1 parent 5b9d3d0 commit 68b027c

File tree

7 files changed

+3395
-86
lines changed

7 files changed

+3395
-86
lines changed

Cargo.lock

Lines changed: 47 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rust-version = "1.78.0"
1818
std = []
1919

2020
[dependencies]
21-
can-dbc = "6.0.0"
21+
can-dbc = "7.0.0"
2222
anyhow = "1.0.68"
2323
heck = "0.4.0"
2424
typed-builder = "0.18.0"
@@ -39,4 +39,4 @@ members = [
3939

4040
# Indicates features that docs.rs should enable when building documentation.
4141
[package.metadata.docs.rs]
42-
features = ["std"]
42+
features = ["std"]

dbc-codegen-cli/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct Cli {
2020

2121
fn main() {
2222
let args = Cli::parse();
23-
let dbc_file = std::fs::read(&args.dbc_path).unwrap_or_else(|e| {
23+
let dbc_file = std::fs::read_to_string(&args.dbc_path).unwrap_or_else(|e| {
2424
eprintln!("could not read `{}`: {}", args.dbc_path.display(), e);
2525
exit(exitcode::NOINPUT);
2626
});
@@ -61,4 +61,4 @@ fn main() {
6161
}
6262
exit(exitcode::NOINPUT)
6363
})
64-
}
64+
}

0 commit comments

Comments
 (0)