cidermill-apple-ble 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses semantic versioning
5
+ within the usual pre-1.0 compatibility rules.
6
+
7
+ ## [0.1.0] - 2026-10-16
8
+
9
+ ### Added
10
+
11
+ - `parse`, `try_parse` and `parse_manufacturer_data` for the proximity-pairing advertisements
12
+ (message type `0x07`) AirPods and Beats broadcast: battery, charging, in-ear, lid and color.
13
+ - `Advertisement` with `battery_report()` (`Stereo`/`Mono`, `lowest()`), `model()`, `color()`,
14
+ `model_display()`, `any_in_ear()`, `mono_battery()` and `same_reported_state()`.
15
+ - Model (22) and color (13) tables.
16
+ - `serde` feature; `no_std` with `--no-default-features`.
17
+ - Python, WASM/npm and C bindings.
18
+ - libFuzzer targets for both parsers and the model and color lookups.
@@ -0,0 +1,107 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 3
4
+
5
+ [[package]]
6
+ name = "cidermill-apple-ble"
7
+ version = "0.1.0"
8
+ dependencies = [
9
+ "serde",
10
+ "serde_json",
11
+ ]
12
+
13
+ [[package]]
14
+ name = "itoa"
15
+ version = "1.0.18"
16
+ source = "registry+https://github.com/rust-lang/crates.io-index"
17
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
18
+
19
+ [[package]]
20
+ name = "memchr"
21
+ version = "2.8.3"
22
+ source = "registry+https://github.com/rust-lang/crates.io-index"
23
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
24
+
25
+ [[package]]
26
+ name = "proc-macro2"
27
+ version = "1.0.107"
28
+ source = "registry+https://github.com/rust-lang/crates.io-index"
29
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
30
+ dependencies = [
31
+ "unicode-ident",
32
+ ]
33
+
34
+ [[package]]
35
+ name = "quote"
36
+ version = "1.0.47"
37
+ source = "registry+https://github.com/rust-lang/crates.io-index"
38
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
39
+ dependencies = [
40
+ "proc-macro2",
41
+ ]
42
+
43
+ [[package]]
44
+ name = "serde"
45
+ version = "1.0.229"
46
+ source = "registry+https://github.com/rust-lang/crates.io-index"
47
+ checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
48
+ dependencies = [
49
+ "serde_core",
50
+ "serde_derive",
51
+ ]
52
+
53
+ [[package]]
54
+ name = "serde_core"
55
+ version = "1.0.229"
56
+ source = "registry+https://github.com/rust-lang/crates.io-index"
57
+ checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
58
+ dependencies = [
59
+ "serde_derive",
60
+ ]
61
+
62
+ [[package]]
63
+ name = "serde_derive"
64
+ version = "1.0.229"
65
+ source = "registry+https://github.com/rust-lang/crates.io-index"
66
+ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
67
+ dependencies = [
68
+ "proc-macro2",
69
+ "quote",
70
+ "syn",
71
+ ]
72
+
73
+ [[package]]
74
+ name = "serde_json"
75
+ version = "1.0.151"
76
+ source = "registry+https://github.com/rust-lang/crates.io-index"
77
+ checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
78
+ dependencies = [
79
+ "itoa",
80
+ "memchr",
81
+ "serde",
82
+ "serde_core",
83
+ "zmij",
84
+ ]
85
+
86
+ [[package]]
87
+ name = "syn"
88
+ version = "3.0.6"
89
+ source = "registry+https://github.com/rust-lang/crates.io-index"
90
+ checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
91
+ dependencies = [
92
+ "proc-macro2",
93
+ "quote",
94
+ "unicode-ident",
95
+ ]
96
+
97
+ [[package]]
98
+ name = "unicode-ident"
99
+ version = "1.0.26"
100
+ source = "registry+https://github.com/rust-lang/crates.io-index"
101
+ checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"
102
+
103
+ [[package]]
104
+ name = "zmij"
105
+ version = "1.0.23"
106
+ source = "registry+https://github.com/rust-lang/crates.io-index"
107
+ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
@@ -0,0 +1,45 @@
1
+ [package]
2
+ name = "cidermill-apple-ble"
3
+ description = "Cross-platform decoder for Apple BLE proximity-pairing advertisements (AirPods, Beats, etc.)"
4
+ version = "0.1.0"
5
+ edition = "2021"
6
+ # Keep in step with `verify:msrv`.
7
+ rust-version = "1.82"
8
+ license = "GPL-3.0-or-later"
9
+ repository = "https://gitlab.com/timrs2998/cidermill-apple-ble"
10
+ readme = "README.md"
11
+ keywords = ["airpods", "bluetooth-le", "ble", "apple", "parser"]
12
+ categories = ["parser-implementations", "no-std", "hardware-support"]
13
+ include = [
14
+ "/src/**",
15
+ "/Cargo.toml",
16
+ "/README.md",
17
+ "/LICENSE",
18
+ "/CHANGELOG.md",
19
+ "/THIRD-PARTY-NOTICES.md",
20
+ ]
21
+
22
+ [package.metadata.docs.rs]
23
+ all-features = true
24
+ rustdoc-args = ["--cfg", "docsrs"]
25
+
26
+ [features]
27
+ default = ["std"]
28
+ # Enables std-dependent trait impls and, when the `serde` feature is also on, serde's own `std`
29
+ # feature. Off (`--no-default-features`), the crate is `#![no_std]` — pure byte-in/struct-out
30
+ # parsing with no allocator and no platform dependency, for embedded BLE stacks.
31
+ std = ["serde?/std"]
32
+ serde = ["dep:serde"]
33
+
34
+ [dependencies]
35
+ serde = { version = "1", features = ["derive"], optional = true, default-features = false }
36
+
37
+ [dev-dependencies]
38
+ serde_json = "1"
39
+
40
+ [lints.rust]
41
+ unsafe_code = "forbid"
42
+ missing_docs = "deny"
43
+
44
+ [lints.clippy]
45
+ all = "warn"