Skip to content
Closed
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
1,426 changes: 900 additions & 526 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
[workspace]
resolver = "2"
members = ["crates/citadel-core", "crates/libcalibre", "src-tauri"]
members = [
"crates/citadel-core",
"crates/citadel-opds",
"crates/citadel-server",
"crates/libcalibre",
"src-tauri",
]

[workspace.package]
rust-version = "1.97.1"
Expand Down
2 changes: 1 addition & 1 deletion crates/citadel-core/src/book.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl LibraryBook {
) -> Self {
Self {
id: book.id.as_i32().to_string(),
uuid: Some(book.uuid.clone()),
uuid: book.uuid.clone(),
title: book.title.clone(),
author_list: book
.authors
Expand Down
2 changes: 1 addition & 1 deletion crates/citadel-core/src/url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ mod tests {
) -> libcalibre::library::Book {
libcalibre::library::Book {
id: libcalibre::BookId::from(1),
uuid: "test-uuid".to_string(),
uuid: Some("test-uuid".to_string()),
title: "Title".to_string(),
sortable_title: None,
authors: vec![],
Expand Down
33 changes: 33 additions & 0 deletions crates/citadel-opds/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[package]
name = "citadel-opds"
version = "0.1.0"
edition = "2021"
rust-version.workspace = true
description = "Tauri-independent OPDS runtime for Citadel"

[dependencies]
argon2 = "0.5"
axum = "0.8.9"
base64 = "0.22"
bytes = "1"
chrono = { version = "0.4.31", features = ["serde"] }
futures-util = "0.3"
hmac = "0.12"
rand_core = { version = "0.6", features = ["getrandom"] }
sha2 = "0.10"
subtle = "2.6"
libcalibre = { path = "../libcalibre" }
netdev = { version = "=0.45.0", default-features = false }
quick-xml = "0.38"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
specta = { version = "=2.0.0-rc.22", features = ["chrono", "derive"] }
tokio = { version = "1.52.3", features = ["macros", "net", "rt-multi-thread", "sync", "time"] }
urlencoding = "2.1.3"
uuid = { version = "1.6.1", features = ["v4", "fast-rng"] }

[dev-dependencies]
diesel = { version = "2.1.0", features = ["sqlite"] }
reqwest = { version = "0.12", features = ["json"] }
tempfile = "3.8"
tower = "0.5"
Loading
Loading