v0.1.0-pre.12
Pre-release
Pre-release
Extending the Storage trait to be able to store arbitrary binary data
This adds 3 new functions to the Storage trait to implement a basic binary KV storage:
async fn load_bytes(&self, key: &str) -> Result<Vec<u8>>;
async fn save_bytes(&mut self, key: &str, value: &[u8]) -> Result<()>;
async fn delete_bytes(&mut self, key: &str) -> Result<()>;This is a breaking change to existing file storage due to the internal addition of subdirectories. It can be fixed by moving every <uuid>.json in the current data directory into data/pairings.
This also adds a few unit tests to FileStorage to ensure correct behavior.
Upgrade to Rust 2021
The Cargo.toml is updated to edition = "2021" now.
Codegen for iOS 15 & macOS 12
Codegen was done on macOS 12.0.1 to reflect characteristics and services for iOS 15 & macOS 12.
New characteristics
AccessCodeControlPointAccessCodeSupportedConfigurationAirplayEnableAssetUpdateReadinessConfigurationStateHardwareFinishMultifunctionButtonNfcAccessControlPointNfcAccessSupportedConfigurationSelectedDiagnosticsModesSiriEnableSiriEndpointSessionStatusSiriEngineVersionSiriLightOnUseSiriListeningSiriTouchToUseSupportedAssetTypesSupportedDiagnosticsModes
Updated characteristics
LockCurrentStateLockTargetState
Removed characteristics
TunnelConnectionTimeoutTunneledAccessoryAdvertisingStatusTunneledAccessoryConnectionStatusTunneledAccessoryStateNumber
New services
AccessCodeAccessoryMetricsAssetUpdateAssistantNfcAccessServiceSiriEndpoint
Updated services (with additional characteristics)
AccessoryInformationDiagnosticsSiriSmartSpeaker
Removed services
Tunnel
Change to the crate's re-exports
tokio isn't re-exported anymore.