anytype_rpc/lib.rs
1/*
2 * Anytype gRPC client
3 * github.com/stevelr/anytype
4 *
5 * SPDX-FileCopyrightText: 2025-2026 Steve Schoettler
6 * SPDX-License-Identifier: Apache-2.0
7 */
8//! Anytype gRPC client
9//!
10//! The gRPC api is subject to change and isn't officially supported for third party clients.
11//!
12//! This crate is experimental. If you need to use gRPC because some functionality isn't available in the
13//! [anytype](https://crates.io/crates/anytype) REST api, this crate may help.
14//!
15//! A very limited cli can list spaces and import and export objects.
16//!
17//! # See also
18//! - [anytype](https://crates.io/crates/anytype) a supported Anytype client that uses Anytype's official REST API.
19//! - [anyr](https://crates.io/crates/anyr) a CLI tool for listing, searching, and performing CRUD operations on anytype objects.
20//!
21//!
22// some protoc files after parsing have comment formatting that clippy doesn't like
23#![allow(clippy::doc_lazy_continuation)]
24
25/// Model types from anytype.model proto package
26pub mod model {
27 tonic::include_proto!("anytype.model");
28}
29
30/// Anytype service, events, and RPC types
31pub mod anytype {
32 tonic::include_proto!("anytype");
33
34 pub use client_commands_client::ClientCommandsClient;
35}
36
37/// Authentication helpers for creating sessions and attaching tokens.
38pub mod auth;
39/// gRPC client configuration and helpers.
40pub mod client;
41/// Helpers for headless config-based auth.
42pub mod config;
43/// Error types for gRPC operations.
44pub mod error;
45/// Helpers for dataview view metadata.
46pub mod views;