5 releases
0.2.3 | Mar 25, 2020 |
---|---|
0.2.2 | Mar 19, 2019 |
0.2.1 | Sep 30, 2018 |
0.2.0 | Sep 29, 2018 |
0.1.0 | Sep 26, 2018 |
#91 in macOS and iOS APIs
21 downloads per month
15KB
298 lines
xpc-connection-rs
XPC connection bindings for Rust.
What is XPC?
A low-level (libSystem) interprocess communication mechanism that is based on serialized property lists for Mac OS. Read more at the Apple Developer website.
Features
audit_token
enables retrieving the client's audit token. This requires using a private API, but it's the simplest way to securely validate clients. See CVE-2020-0984 and this useful blog post. The example echo server makes use of this.
Supported Data Types
array
:Vec<Message>
bool
:bool
data
:Vec<u8>
date
:SystemTime
dictionary
:HashMap<String, Message>
double
:f64
error
:MessageError
fd
:RawFd
int64
:i64
string
:String
uint64
:u64
uuid
:Vec<u8>
null
Yet to Be Supported Data Types
activity
endpoint
shmem
Dependencies
~1–2.7MB
~52K SLoC