Skip to content

Commit a4b885f

Browse files
committed
fix(ci): update raft build.rs proto path and deny.toml format
- coordinode-raft/build.rs: fix proto path ../../proto (was ../../../proto) - deny.toml: remove deprecated "warn" values for cargo-deny v2
1 parent 7a0b30a commit a4b885f

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

crates/coordinode-raft/build.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
fn main() -> Result<(), Box<dyn std::error::Error>> {
22
let manifest_dir = std::env::var("CARGO_MANIFEST_DIR")?;
3+
// Proto files are in the `proto/` submodule at the workspace root.
4+
// From this crate (crates/coordinode-raft/) that's ../../proto.
35
let proto_root = std::path::Path::new(&manifest_dir)
4-
.join("../../../proto")
6+
.join("../../proto")
57
.canonicalize()
6-
.unwrap_or_else(|_| std::path::PathBuf::from("../../../proto"));
8+
.unwrap_or_else(|_| std::path::PathBuf::from("../../proto"));
79

810
let proto_root_str = proto_root.display().to_string();
911
let raft_proto = format!("{proto_root_str}/coordinode/v1/replication/raft.proto");

deny.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,9 @@ ignore = true
2525
[advisories]
2626
# Deny any crate with known vulnerabilities
2727
vulnerability = "deny"
28-
unmaintained = "warn"
29-
yanked = "warn"
30-
notice = "warn"
3128

3229
[bans]
33-
multiple-versions = "warn"
30+
multiple-versions = "allow"
3431
wildcards = "deny"
3532

3633
[sources]

0 commit comments

Comments
 (0)