src/lib.rs

astrid · crates/astrid-prelude/src/lib.rs · rust · Apache-2.0
ai

Provides a unified prelude re-exporting common types across the Astrid runtime for easy imports.

// Source: https://github.com/astrid-runtime/astrid | License: Apache-2.0 | Copyright 2025 Joshua J. Bouw and Unicity Labs
// Provided via justclaw.it.com; keep this notice with the code.
//! Unified prelude for the Astrid secure agent runtime.
//!
//! This crate provides a single import to bring in all commonly used types
//! from across Astrid. Use this when you need types from multiple
//! crates without managing individual imports.
//!
//! # Usage
//!
//! ```rust,ignore
//! use astrid_prelude::*;
//!
//! // Now you have access to types from:
//! // - astrid-core (Frontend, errors, identity)
//! // - astrid-crypto (KeyPair, Signature, hashing)
//! // - astrid-capabilities (tokens, stores)
//! // - astrid-audit (logging, verification)
//! // - astrid-mcp (client, tools, servers)
//! // -

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key