Higher level, asynchronous, pure Rust AT-SPI2 protocol implementation using zbus.
Part of the Odilia screen reader project.
- 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 smol.
default:proxies,connection.proxies: enable re-export of theatspi-proxiescrate; this allows you to directly communicate with DBus.connection: enable re-export of theatspi-connectioncrate; this gives some nice abstractions over DBus when receiving only.proxieswill still be needed to query information actively.tokio: enable support for thetokioruntime; other runtimes can be used without an integration feature.- One exception on
glomioas it has its own types not related to how other runtimes work;atspiis not compatible withatspi(PRs welcome though)
- One exception on
tracing: enable support for thetracinglogger.
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
This repository offers contributors hooks and a commit message template. We kindly request contributors to set both up locally.
This repository offers basic pre-commit and pre-push scripts in the .githooks directory.
This command will configure git to use the hooks from the .githooks directory for this repository.
git config core.hooksPath .githooksThe git commit message template helps contributors follow conventional commits for atspi.
This command will configure git to use the commit message template from the .gitmessage file for
this repository.
git config commit.template .gitmessageThe atspi library is licensed as Apache 2.0 or MIT.