Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
Implement splitting and offsets to support databases that serialise t…
Browse files Browse the repository at this point in the history
…o over 1MB
  • Loading branch information
Sam A. Horvath-Hunt committed Jun 13, 2019
1 parent b9b2eb1 commit 3f2b5cd
Show file tree
Hide file tree
Showing 3 changed files with 333 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/buku/types.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub type BookmarkId = u32;

#[derive(Serialize, Deserialize)]
#[derive(Serialize, Deserialize, Clone)]
pub struct SavedBookmark {
pub id: BookmarkId,
pub url: String,
Expand Down
2 changes: 1 addition & 1 deletion src/native_messaging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type JSON = serde_json::Value;

/// Number of bytes in one megabyte. Stored as a usize as that's the type it
/// will be compared against later.
const ONE_MEGABYTE_BYTES: &'static usize = &1_048_576;
pub const ONE_MEGABYTE_BYTES: &'static usize = &1_048_576;

#[derive(Debug, PartialEq)]
pub enum NativeMessagingError {
Expand Down
Loading

0 comments on commit 3f2b5cd

Please sign in to comment.