Skip to content

Commit

Permalink
Clipboard source/destination integration
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolence committed Aug 14, 2024
1 parent ae6e871 commit 2c71dfa
Show file tree
Hide file tree
Showing 5 changed files with 443 additions and 1 deletion.
254 changes: 253 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ rand = "0.8"
pdfium-render = { version = "0.8", features = ["thread_safe", "image"], optional = true }
image = "0.25"
bytes = { version = "1" }
arboard = { version = "3", features = ["image"] }


[dev-dependencies]
Expand Down
5 changes: 5 additions & 0 deletions src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use gcloud_sdk::tonic::metadata::errors::InvalidMetadataValue;
use indicatif::style::TemplateError;
use std::time::SystemTimeError;
use thiserror::Error;

#[derive(Error, Debug)]
Expand Down Expand Up @@ -38,6 +39,10 @@ pub enum AppError {
PdfiumError(#[from] pdfium_render::prelude::PdfiumError),
#[error("Image conversion error: {0}")]
ImageError(#[from] image::ImageError),
#[error("Clipboard error: {0}")]
ClipboardError(#[from] arboard::Error),
#[error("SystemTimeError: {0}")]
SystemTimeError(#[from] SystemTimeError),
#[error("System error: {message}")]
SystemError { message: String },
}
Expand Down
Loading

0 comments on commit 2c71dfa

Please sign in to comment.