54 releases (24 breaking)

0.24.0 Aug 14, 2024
0.22.0 May 24, 2024
0.21.0 Feb 29, 2024
0.20.0 Oct 17, 2023
0.3.8 Nov 30, 2022

#2 in Accessibility

Download history 29664/week @ 2024-07-17 28976/week @ 2024-07-24 27530/week @ 2024-07-31 31064/week @ 2024-08-07 29193/week @ 2024-08-14 27522/week @ 2024-08-21 29965/week @ 2024-08-28 31019/week @ 2024-09-04 26623/week @ 2024-09-11 31051/week @ 2024-09-18 32130/week @ 2024-09-25 32234/week @ 2024-10-02 32539/week @ 2024-10-09 33791/week @ 2024-10-16 34066/week @ 2024-10-23 37358/week @ 2024-10-30

143,279 downloads per month
Used in 82 crates (5 directly)

Apache-2.0 OR MIT

340KB
7K SLoC

AT-SPI for Rust

crates.io badge docs.rs badge CI badge Code coverage badge

Higher level, asynchronous, pure Rust AT-SPI2 protocol implementation using zbus.

Part of the Odilia screen reader project.

Design

  • Fully documented, with #[deny(missing_docs)]
  • Or at least, it will be by 1.0
  • Fully safe, with #[deny(unsafe_code)]
  • Fantastic code style with #[deny(clippy:all, clippy::pedantic, clippy::cargo)]

This crate makes use of the zbus crate for dbus communication. We use the asynchronous zbus API, so to use atspi, you will need to run an async executer like tokio or async-std. The async-io and tokio features are exposed and will be passed through to zbus.

D-Bus type validation

Atspi is used to send and receive data to and from applications. Sender and recipient need to agree on the shape of the data type for fruitful communication. Our best bet is to keep our types in sync with the protocol descriptions.

We employ zbus-lockstep to match types against those defined in the AT-SPI2 protocol descriptions.

Not all types can be validated (easily) with zbus_lockstep because types may not exist in the protocol descriptions, for example because they are deprecated (but still in use) or we have chosen a different representation.

A (partial) review of type validation may be found here

License

The atspi library is licensed as Apache 2.0 or MIT.

Dependencies

~3–15MB
~200K SLoC