Skip to content

Commit

Permalink
Merge 60225f4 into 66c9362
Browse files Browse the repository at this point in the history
  • Loading branch information
Pushkarm029 authored Nov 30, 2024
2 parents 66c9362 + 60225f4 commit 42bb74c
Show file tree
Hide file tree
Showing 10 changed files with 589 additions and 59 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ members = [
"data-pdf",
"data-resource",
"fs-atomic-versions",
"fs-cache",
"fs-atomic-light",
"fs-metadata",
"fs-properties",
Expand All @@ -23,6 +24,7 @@ default-members = [
"data-pdf",
"data-resource",
"fs-atomic-versions",
"fs-cache",
"fs-atomic-light",
"fs-metadata",
"fs-properties",
Expand Down
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,19 @@ The core crate is `fs-index` which provides us with [content addressing](https:/

<div align="center">

| Package | Description |
| --------------- | ---------------------------------------- |
| `ark-cli` | The CLI tool to interact with ark crates |
| `data-resource` | Resource hashing and ID construction |
| `fs-index` | Resource Index construction and updating |
| `fs-storage` | Filesystem storage for resources |
| `fs-metadata` | Metadata management |
| `fs-properties` | Properties management |
| `data-link` | Linking resources |
| `data-pdf` | PDF handling |
| `data-error` | Error handling |
| `data-json` | JSON serialization and deserialization |
| Package | Description |
| --------------- | ---------------------------------------- |
| `ark-cli` | The CLI tool to interact with ark crates |
| `data-resource` | Resource hashing and ID construction |
| `fs-cache` | Memory and disk caching with LRU eviction |
| `fs-index` | Resource Index construction and updating |
| `fs-storage` | Filesystem storage for resources |
| `fs-metadata` | Metadata management |
| `fs-properties` | Properties management |
| `data-link` | Linking resources |
| `data-pdf` | PDF handling |
| `data-error` | Error handling |
| `data-json` | JSON serialization and deserialization |

</div>

Expand Down
2 changes: 1 addition & 1 deletion fs-atomic-versions/src/atomic/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl AtomicFile {

/// Return the latest version together with vector of the
/// files matching this version. Multiple files for the same version
/// can appear due to usage of file syncronization. Different devices
/// can appear due to usage of file synchronization. Different devices
/// can create same version simultaneously.
pub fn latest_version(&self) -> Result<(usize, Vec<ReadOnlyFile>)> {
let files_iterator = fs::read_dir(&self.directory)?.flatten();
Expand Down
19 changes: 19 additions & 0 deletions fs-cache/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
name = "fs-cache"
version = "0.1.0"
edition = "2021"

[lib]
name = "fs_cache"
crate-type = ["rlib", "cdylib"]
bench = false

[dependencies]
log = { version = "0.4.17", features = ["release_max_level_off"] }
data-error = { path = "../data-error" }
fs-storage = { path = "../fs-storage"}
lru = "0.12.5"

[dev-dependencies]
tempdir = "0.3.7"
rstest = "0.23"
Loading

0 comments on commit 42bb74c

Please sign in to comment.