The previous method of allowing it through .cargo/config.toml doesn't seem to work anymore.
ruma-client-api contains serializable types for the requests and responses for each endpoint in the Matrix client API specification. These types can be shared by client and server code.