Implements credential storage in the lib.

This commit is contained in:
2026-08-23 15:13:01 -07:00
parent 691c4a7d80
commit 2e8ddd3a73
7 changed files with 417 additions and 24 deletions

View File

@@ -3,8 +3,10 @@
//! A high-performance, asynchronous Rust library for interacting with Nextcloud's
//! WebDAV file transfer APIs, OCS Sharing API, and credential storage.
pub mod auth;
pub mod client;
pub mod config;
pub mod credentials;
pub mod error;
pub mod models;
pub mod progress;
@@ -12,8 +14,13 @@ pub mod sharing;
pub mod webdav;
// Convenient top-level re-exports
pub use auth::{
initiate_login_flow, interactive_browser_login, poll_login_flow, LoginFlowInitResponse,
LoginFlowPollInfo, LoginFlowPollSuccess,
};
pub use client::{NextcloudClient, ServerStatus};
pub use config::{AccountCredentials, ClientConfig};
pub use credentials::{CredentialStore, StoredAccount, KEYRING_SERVICE_NAME};
pub use error::{NextcloudError, Result};
pub use models::{UploadOptions, UploadResult};
pub use progress::{ProgressCallback, ProgressEvent};