Skip to content

Commit

Permalink
refactor: mode pdf file back to fs-index
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <tareknaser360@gmail.com>
  • Loading branch information
tareknaser committed Feb 21, 2024
1 parent 6f536eb commit ef25983
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
7 changes: 7 additions & 0 deletions crates/fs-index/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ reqwest = "0.11.11"
scraper = "0.13.0"
tokio = { version = "1", features = ["full"] }
itertools = "0.10.5"
once_cell = "1.16.0"
image = "0.24.2"
pdfium-render = { git = "https://github.com/ajrcarey/pdfium-render", rev = "d2559c1", features = [
"thread_safe",
"sync",
] }


[dev-dependencies]
uuid = { version = "1.6.1", features = ["v4"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/fs-index/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use fs_utils::errors::{ArklibError, Result};

pub mod id;
pub mod index;

pub mod link;
pub mod pdf;

mod storage;

Expand Down
2 changes: 1 addition & 1 deletion crates/fs-utils/src/pdf.rs → crates/fs-index/src/pdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub enum PDFQuality {
}

fn initialize_pdfium() {
let out_path = std::env::var("OUT_DIR").unwrap();
let out_path = env!("OUT_DIR");
let pdfium_lib_path =
PathBuf::from(&out_path).join(Pdfium::pdfium_platform_library_name());
let bindings = Pdfium::bind_to_library(
Expand Down
6 changes: 0 additions & 6 deletions crates/fs-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ reqwest = "0.11.11"
serde_json = "1.0.82"
anyhow = "1"
url = { version = "2.2.2", features = ["serde"] }
once_cell = "1.16.0"
image = "0.24.2"
pdfium-render = { git = "https://github.com/ajrcarey/pdfium-render", rev = "d2559c1", features = [
"thread_safe",
"sync",
] }

[dev-dependencies]
rstest = "0.18"
Expand Down
1 change: 0 additions & 1 deletion crates/fs-utils/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pub mod errors;
pub mod json;
pub mod pdf;

0 comments on commit ef25983

Please sign in to comment.