Skip to content

v0.1.0-pre.12

Pre-release
Pre-release

Choose a tag to compare

@ewilken ewilken released this 28 Oct 12:55
· 14 commits to main since this 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

  • AccessCodeControlPoint
  • AccessCodeSupportedConfiguration
  • AirplayEnable
  • AssetUpdateReadiness
  • ConfigurationState
  • HardwareFinish
  • MultifunctionButton
  • NfcAccessControlPoint
  • NfcAccessSupportedConfiguration
  • SelectedDiagnosticsModes
  • SiriEnable
  • SiriEndpointSessionStatus
  • SiriEngineVersion
  • SiriLightOnUse
  • SiriListening
  • SiriTouchToUse
  • SupportedAssetTypes
  • SupportedDiagnosticsModes

Updated characteristics

  • LockCurrentState
  • LockTargetState

Removed characteristics

  • TunnelConnectionTimeout
  • TunneledAccessoryAdvertisingStatus
  • TunneledAccessoryConnectionStatus
  • TunneledAccessoryStateNumber

New services

  • AccessCode
  • AccessoryMetrics
  • AssetUpdate
  • Assistant
  • NfcAccessService
  • SiriEndpoint

Updated services (with additional characteristics)

  • AccessoryInformation
  • Diagnostics
  • Siri
  • SmartSpeaker

Removed services

  • Tunnel

Change to the crate's re-exports

tokio isn't re-exported anymore.