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
129 changes: 56 additions & 73 deletions Cargo.lock

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

11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,18 @@ atmis = { version = "0.2.0", path = "crates/atmis" }
# WHY: snafu is the fleet-wide error library per kanon RUST.md. Pinned at the
# workspace root so the single heurema crate inherits via `workspace = true`,
# matching the inheritance pattern adapter sub-crates will use later.
snafu = "0.8"
snafu = "0.9"

# WHY: heurema's PersistenceBackend bound (crates/heurema/src/persistence.rs)
# needs Serialize on save and DeserializeOwned on load, so heurema itself
# depends on serde; the adapter crates add serde_json (atmis, thesauros) to
# turn that into snapshot bytes. fjall is thesauros's storage engine, pinned
# at the same major version kanon's own archeion crate already uses
# fleet-wide.
# turn that into snapshot bytes. fjall is thesauros's storage engine.
# NOTE: kanon's archeion crate still pins fjall 2 (workspace root
# `fjall = "2"`) — this bump is no longer at the "same major version"
# fleet-wide; the two now diverge until archeion moves too.
serde = { version = "1", features = ["derive"] }
serde_json = "1"
fjall = "2"
fjall = "3"

[workspace.lints.clippy]
pedantic = { level = "warn", priority = -1 }
Expand Down
4 changes: 2 additions & 2 deletions crates/atmis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ impl AtmisBackend {
fn not_found(name: &str) -> HeuremaError {
HeuremaError::IndexNotFound {
name: name.to_owned(),
location: snafu::Location::default(),
location: std::panic::Location::caller(),
}
}

fn codec_error(source: serde_json::Error) -> HeuremaError {
HeuremaError::Persistence {
source: PersistenceSource::new(source),
location: snafu::Location::default(),
location: std::panic::Location::caller(),
}
}

Expand Down
4 changes: 2 additions & 2 deletions crates/heurema/tests/persistence_contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl RecordingBackend {
fn not_found(name: &str) -> HeuremaError {
HeuremaError::IndexNotFound {
name: name.to_owned(),
location: snafu::Location::default(),
location: std::panic::Location::caller(),
}
}
}
Expand Down Expand Up @@ -91,7 +91,7 @@ impl FailingBackend {
fn storage_failure() -> HeuremaError {
HeuremaError::Persistence {
source: PersistenceSource::new(MidError::default()),
location: snafu::Location::default(),
location: std::panic::Location::caller(),
}
}
}
Expand Down
Loading