Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rust/cbork/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ workspace = true
[dependencies]
# Always used a versioned dependency, so that changes to dependent libraries do not cause cascading
# breakage inside the repo.
cbork-cddl-parser = {version = "0.0.3", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "v0.0.3" }
cbork-cddl-parser = { version = "0.0.3", git = "https://github.com/input-output-hk/catalyst-libs.git", rev = "r20250204-00" }
# Only use this for testing - do not change dependency to this in checked in code.
#cbork-cddl-parser = { path = "../cbork-cddl-parser", version = "0.1.0" }
clap = { version = "4.5.19", features = ["derive", "env"] }
clap = { version = "4.5.19", features = ["derive", "env"] }
anyhow = "1.0.89"
console = "0.15.8"

4 changes: 2 additions & 2 deletions rust/cbork/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use std::{path::PathBuf, process::exit};

use cbork_cddl_parser::{parse_cddl, Extension};
use cbork_cddl_parser::{validate_cddl, Extension};
use clap::Parser;
use console::{style, Emoji};

Expand Down Expand Up @@ -33,7 +33,7 @@ impl Cli {
/// Check the CDDL file, return any errors
fn check_file(file_path: &PathBuf) -> anyhow::Result<()> {
let mut content = std::fs::read_to_string(file_path)?;
parse_cddl(&mut content, &Extension::CDDLParser)?;
validate_cddl(&mut content, &Extension::CDDL)?;
Ok(())
}

Expand Down