Compare commits

..
4 Commits
Author SHA256 Message Date
alex 95216f2e62 Derive PartialEq for various types 2026-09-02 22:48:53 -04:00
alex 63bc705669 Add documentation URL to Cargo configuration 2026-09-02 22:42:44 -04:00
alex 4eca2c45df Lint 2026-09-02 22:28:56 -04:00
alex 2568c98bbc Bump dependencies 2026-09-02 22:14:19 -04:00
5 changed files with 10 additions and 9 deletions
Generated
+4 -4
View File
@@ -873,9 +873,9 @@ checksum = "13c45bb4a6ae1280ec0803b1ef9d3455eb50f01efbbe1447ab020f1d54fba9d8"
[[package]] [[package]]
name = "oxigraph" name = "oxigraph"
version = "0.5.10" version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4774aac568b58fca816d35cc1fb7274b57f9a0fa5daa956bf59323a80fb81b3b" checksum = "7f6632dd080bd07676f06e70254ff5862c9943e9483d700fa7258df73a3f9a6a"
dependencies = [ dependencies = [
"dashmap", "dashmap",
"getrandom 0.3.4", "getrandom 0.3.4",
@@ -965,9 +965,9 @@ dependencies = [
[[package]] [[package]]
name = "oxrocksdb-sys" name = "oxrocksdb-sys"
version = "0.5.10" version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14847363930e46b9c1d0ef504cfd4a49e63e320c2bcd7d26a5bc7fe6da0499d0" checksum = "01fcf5ae1e1295a612bef72fc64cd81e1ac3d1bd3243ef84d330f2962a8335e1"
dependencies = [ dependencies = [
"bindgen", "bindgen",
"cc", "cc",
+2 -1
View File
@@ -3,6 +3,7 @@ name = "ldp"
version = "0.1.0" version = "0.1.0"
edition = "2024" edition = "2024"
description = "A library to assist with the creation and maintenance of remote RDF data via LDP" description = "A library to assist with the creation and maintenance of remote RDF data via LDP"
documentation = "https://docs.rs/ldp"
readme = "README.md" readme = "README.md"
license = "GPL-3.0-only" license = "GPL-3.0-only"
keywords = ["ldp", "rdf", "sparql"] keywords = ["ldp", "rdf", "sparql"]
@@ -25,4 +26,4 @@ reqwest-middleware.workspace = true
sfv.workspace = true sfv.workspace = true
slotmap = { optional = true, workspace = true } slotmap = { optional = true, workspace = true }
thiserror.workspace = true thiserror.workspace = true
tracing.workspace = true tracing.workspace = true
+1 -1
View File
@@ -2,7 +2,7 @@ use crate::vocab;
use oxigraph::model::NamedNodeRef; use oxigraph::model::NamedNodeRef;
/// The type of [Container](https://www.w3.org/TR/ldp/#ldpc). /// The type of [Container](https://www.w3.org/TR/ldp/#ldpc).
#[derive(Clone, Debug)] #[derive(Clone, Debug, PartialEq)]
pub enum ContainerType { pub enum ContainerType {
Basic, Basic,
Direct, Direct,
+2 -2
View File
@@ -49,8 +49,8 @@ where
value = format!("{value}; omit=\"{omit_str}\""); value = format!("{value}; omit=\"{omit_str}\"");
} }
let header_value = HeaderValue::from_str(&value) let header_value =
.expect("Failed to produce Prefer header value"); HeaderValue::from_str(&value).expect("Failed to produce Prefer header value");
Ok(HeaderMap::from_iter([( Ok(HeaderMap::from_iter([(
crate::header::PREFER, crate::header::PREFER,
+1 -1
View File
@@ -353,7 +353,7 @@ impl ResourceRequest {
} }
/// The type of [Resource](https://www.w3.org/TR/ldp/#ldpr-resource). /// The type of [Resource](https://www.w3.org/TR/ldp/#ldpr-resource).
#[derive(Clone, Debug)] #[derive(Clone, Debug, PartialEq)]
pub enum ResourceType { pub enum ResourceType {
NonRdfSource, NonRdfSource,
RdfSource(Option<ContainerType>), RdfSource(Option<ContainerType>),