2 releases
0.1.1 | Mar 25, 2020 |
---|---|
0.1.0 | Mar 19, 2019 |
#193 in macOS and iOS APIs
Used in xpc-connection
3KB
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
No runtime deps
~0–2MB
~36K SLoC