Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Kioubit committed Oct 22, 2024
1 parent cdbb2f5 commit 21e4334
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 54 deletions.
55 changes: 13 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ edition = "2021"
[dependencies]
roa_wizard = { git = "https://github.com/Kioubit/roa_wizard.git", tag = "0.1.9" }
cidr-utils = "0.6.1"
serde = { version = "1.0.210", features = ["derive", "rc"] }
serde_json = "1.0.129"
# Pending removal of remote-related dependencies
# bgpkit-parser = "0.10.10"
bgpkit-parser = { git = "https://github.com/bgpkit/bgpkit-parser.git", rev = "74eb14514089edcbf3d1ba7b8d7707a3ea664300", default-features = false, features = ["parser"] }
serde = { version = "1.0.213", features = ["derive", "rc"] }
serde_json = "1.0.132"
bgpkit-parser = { version = "0.10.11-beta.1" , default-features = false, features = ["parser", "oneio"]}
rayon = "1.10.0"
clap = "4.5.20"
dot = "0.1.4"
Expand Down
18 changes: 11 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn main() {
roa_wizard_lib::check_and_output(generate_bird(base_path, true), is_strict)
}
Some(("json", _)) => {
roa_wizard_lib::check_and_output(generate_json(base_path.to_owned()), is_strict)
roa_wizard_lib::check_and_output(generate_json(base_path), is_strict)
}
_ => unreachable!(),
}
Expand Down Expand Up @@ -165,9 +165,13 @@ fn main() {


fn output_result(result: BoxResult<String>) {
if result.is_err() {
writeln!(io::stderr(), "{}", result.unwrap_err()).ok();
exit(1);
}
writeln!(io::stdout(), "{}", result.unwrap()).ok();
}
match result {
Ok(s) => {
writeln!(io::stdout(), "{}", s).ok()
}
Err(err) => {
writeln!(io::stderr(), "{}", err).ok();
exit(1);
}
};
}

0 comments on commit 21e4334

Please sign in to comment.