Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Refactor src/index.rs and Enhance Documentation #87

Merged
merged 30 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b8149f5
docs(index): add doc comments for ResourceIndex, IndexEntry and Index…
tareknaser Feb 13, 2024
2bc8a31
docs(index): add doc comment for ResourceIndex::build
tareknaser Feb 13, 2024
9c0d7fb
refactor(index): use serde instead of custom methods
tareknaser Feb 14, 2024
7d72e93
refactor(index): rewrite discover_paths and remove is_hidden
tareknaser Feb 15, 2024
0663292
docs(index): add doc comments for scan_entry
tareknaser Feb 15, 2024
99b1316
refactor(index): rewrite index_new
tareknaser Feb 15, 2024
56eed20
refactor(index): rewrite forget_id
tareknaser Feb 15, 2024
b9d30e2
refactor(index): rewrite forget_path
tareknaser Feb 15, 2024
ca0c7ac
tests(index): use Tempdir for resource_index_load_store
tareknaser Feb 15, 2024
17e38ad
tests(index): use TempDir::new for tests
tareknaser Feb 15, 2024
2377aa8
test(index): add tests to ensure canonical paths
tareknaser Feb 16, 2024
e6eddda
refactor(index): rewrite provide
tareknaser Feb 16, 2024
47b6685
refactor(index): rewrite update_one
tareknaser Feb 16, 2024
218c651
refactor(index): rewrite update_all
tareknaser Feb 16, 2024
f98eeec
fix(index): fix clippy warning
tareknaser Feb 16, 2024
1ca440f
fix: update platform condition for cross-compatibility
tareknaser Feb 16, 2024
c6d68df
Enhance docs
kirillt Feb 19, 2024
65a0912
fix(index): canonicalize path before building index
tareknaser Feb 19, 2024
a2f2eb5
test(index): add a test to index a hidden directory
tareknaser Feb 19, 2024
633335a
fix(index): index hidden root directories correctly
tareknaser Feb 19, 2024
29348fe
define separate methods to get length of id2path and path2id
tareknaser Feb 27, 2024
237cd04
refactor(index): revert store and load method for ResourceIndex
tareknaser Feb 27, 2024
14a27e6
fix: canonicalize root path in ResourceIndex::load()
tareknaser Mar 2, 2024
3a9cb54
fix: parse and load IndexEntry::modified from nanoseconds
tareknaser Mar 8, 2024
534229a
fix: change condition in collision handling to treat negative values …
tareknaser Mar 8, 2024
4eaec25
Add #[allow(dead_code)] for load_raw_metadata
tareknaser Mar 8, 2024
da27e6c
remove load_raw_metadata and its unit test
tareknaser Mar 18, 2024
5185e3c
refactor: ensure SystemTime precision to milliseconds for compatibility
tareknaser Mar 20, 2024
2bf5462
Removed TODO
kirillt Mar 20, 2024
a59e55d
Bump image to 0.25
kirillt Mar 20, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
target
Cargo.lock
**/app_id
.idea
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ env_logger = "0.9.0"
lazy_static = "1.4.0"
canonical-path = "2.0.2"
pathdiff = "0.2.1"
image = "0.24.2"
image = "0.25"
pdfium-render = { git = "https://github.com/ajrcarey/pdfium-render", rev = "d2559c1", features = [
"thread_safe",
"sync",
] }
libloading = "0.7.3"
serde_json = "1.0.82"
serde = { version = "1.0.138", features = ["derive"] }
serde_with = "3.6.1"
url = { version = "2.2.2", features = ["serde"] }
reqwest = "0.11.11"
scraper = "0.13.0"
Expand Down
Loading
Loading