syncular-runtime 0.1.0

Shared Rust runtime for Syncular SQLite-backed native and browser clients.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::error::Result;
use crate::protocol::CombinedResponse;

pub use syncular_protocol::binary_sync_pack::{
    is_binary_sync_pack_content_type, SYNC_PACK_CONTENT_TYPE, SYNC_PACK_ENCODING_BINARY_V1,
};

pub fn decode_binary_sync_pack(bytes: &[u8]) -> Result<CombinedResponse> {
    Ok(syncular_protocol::binary_sync_pack::decode_binary_sync_pack(bytes)?)
}