Skip to main content

Crate indusagi_core

Crate indusagi_core 

Source
Expand description

Cross-cutting primitives that every indusagi crate depends on.

This is the foundational crate of the 100%-Rust indusagi rebuild — the “packaging skin and shared vocabulary” that no single subsystem owns but all of them need. It deliberately carries no subsystem logic; it ships the load-bearing primitives:

Re-exports§

pub use brand::BRAND;
pub use brand::Brand;
pub use brand::env_name;
pub use cancel::CancelExt;
pub use canonical::HASH_WIDTH;
pub use canonical::canonical_json;
pub use canonical::content_hash;
pub use channel::BoxStream;
pub use channel::Channel;
pub use errors::CoreError;
pub use errors::CoreResult;
pub use locate::Locator;
pub use locate::LocatorOverrides;
pub use time::now_ms;
pub use version::VERSION;

Modules§

brand
The single source of naming truth for the whole application.
cancel
Cooperative cancellation — the framework’s single cancellation currency.
canonical
Canonical JSON — a character-faithful JSON.stringify, plus content hashing.
channel
The re-iterable Channel — a stream factory, not a stream.
env
The single environment-variable registry for the framework.
errors
The shared error vocabulary for cross-cutting core primitives.
ids
ULID-based identifier helpers.
locate
Filesystem location resolution.
time
The single wall-clock surface — one canonical now_ms().
version
The single source of version truth for the whole workspace.

Structs§

CancellationToken
A token which can be used to signal a cancellation request to one or more tasks.