diff --git a/crates/caldav/src/lib.rs b/crates/caldav/src/lib.rs index 703e4ce..d9f0fd9 100644 --- a/crates/caldav/src/lib.rs +++ b/crates/caldav/src/lib.rs @@ -14,7 +14,6 @@ use std::str::FromStr; use std::sync::Arc; use tokio::sync::RwLock; -pub mod depth_extractor; pub mod error; pub mod proptypes; pub mod resources; diff --git a/crates/caldav/src/routes/propfind.rs b/crates/caldav/src/routes/propfind.rs index 026422d..d5a0549 100644 --- a/crates/caldav/src/routes/propfind.rs +++ b/crates/caldav/src/routes/propfind.rs @@ -1,4 +1,3 @@ -use crate::depth_extractor::Depth; use crate::CalDavContext; use actix_web::http::header::ContentType; use actix_web::http::StatusCode; @@ -7,6 +6,7 @@ use actix_web::{HttpRequest, HttpResponse}; use anyhow::Result; use quick_xml::events::BytesText; use rustical_auth::{AuthInfoExtractor, CheckAuthentication}; +use rustical_dav::depth_extractor::Depth; use rustical_dav::namespace::Namespace; use rustical_dav::resource::{HandlePropfind, Resource}; use rustical_dav::xml_snippets::generate_multistatus; diff --git a/crates/dav/Cargo.toml b/crates/dav/Cargo.toml index 2390a06..66b349b 100644 --- a/crates/dav/Cargo.toml +++ b/crates/dav/Cargo.toml @@ -7,5 +7,7 @@ edition = "2021" actix-web = "4.4.0" anyhow = "1.0.75" async-trait = "0.1.73" +derive_more = "0.99.17" +futures-util = "0.3.28" quick-xml = "0.30.0" rustical_auth = { path = "../auth/" } diff --git a/crates/caldav/src/depth_extractor.rs b/crates/dav/src/depth_extractor.rs similarity index 100% rename from crates/caldav/src/depth_extractor.rs rename to crates/dav/src/depth_extractor.rs diff --git a/crates/dav/src/lib.rs b/crates/dav/src/lib.rs index 7bc6409..374d1d1 100644 --- a/crates/dav/src/lib.rs +++ b/crates/dav/src/lib.rs @@ -1,3 +1,4 @@ +pub mod depth_extractor; pub mod namespace; pub mod resource; pub mod xml_snippets;