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
12 changes: 9 additions & 3 deletions .axes/axes.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name = "parcode"
version = "2.0.1"
version = "0.5.3"
description = "Blazing fast parallel caching for Rust. Serializes complex data to a chunked file format to get CPU maximum power on data loads, but as a simple binary loader."

[scripts.test]
desc = "Run a simple test echo command."
run = """echo "✅ Test for '<name>' successful!""""
run = [
"# === Running all standard quality tests... ===",
"@> cargo fmt -- --check",
"@> cargo clippy --all-features --all-targets -- -D warnings",
"@> cargo test --all-features --all-targets",
"# <#green>=== Completed! now you can make a PR. ===<#reset>",
]
desc = "Run a standard quality test required from make a PR."

[options.at_start]
desc = "Commands to run when entering a session (e.g., `source .venv/bin/activate`)"
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "parcode"
version = "0.5.2"
version = "0.5.3"
edition = "2024"
authors = ["RetypeOS"]
description = "A high-performance, lazy load and parallelized caching library for complex Rust data structures."
Expand Down
6 changes: 3 additions & 3 deletions examples/inspect_debug.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![allow(missing_docs)]

fn main() -> parcode::Result<()> {
use parcode::{Parcode, ParcodeObject, inspector::ParcodeInspector};
use parcode::{Parcode, ParcodeObject};
use serde::{Deserialize, Serialize};
use std::collections::HashMap;

Expand Down Expand Up @@ -33,7 +33,7 @@ fn main() -> parcode::Result<()> {

Parcode::save("stress_jagged.par", &jagged_obj)?;

let report = ParcodeInspector::inspect("stress_jagged.par")?;
let report = Parcode::inspect("stress_jagged.par")?;
println!("{}", report);

// Verify Data
Expand Down Expand Up @@ -98,7 +98,7 @@ fn main() -> parcode::Result<()> {

Parcode::save("stress_nested.par", &root)?;

let report_nested = ParcodeInspector::inspect("stress_nested.par")?;
let report_nested = Parcode::inspect("stress_nested.par")?;
println!("{}", report_nested);

// Verify Data
Expand Down
8 changes: 8 additions & 0 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ use crate::error::Result;
use crate::executor::execute_graph;
use crate::format::GlobalHeader;
use crate::graph::TaskGraph;
use crate::inspector::{DebugReport, ParcodeInspector};
use crate::io::SeqWriter;
use crate::reader::{ParcodeFile, ParcodeNative};
use crate::visitor::ParcodeVisitor;
Expand Down Expand Up @@ -117,6 +118,13 @@ impl Parcode {
{
ParcodeOptions::default().save_sync(path, root_object)
}

/// Generates a structural inspection report of a file without full initialization.
///
/// This is a convenience wrapper equivalent to `ParcodeInspector::inspect`.
pub fn inspect<P: AsRef<Path>>(path: P) -> Result<DebugReport> {
ParcodeInspector::inspect(path)
}
}

/// Builder for configuring serialization options (compression, etc.).
Expand Down