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:
cancel— the framework’s single cancellation currency (cancel::CancellationToken) with the parent→round→child chain helpers and the typed-error gate (cancel yields a typederrors::CoreError, never a panic).canonical— the character-faithfulJSON.stringifyencoder andcanonical::content_hash, the parity-critical content-addressing surface.- [
env] — the single environment-variable registry (brand grammar,INDUSAGI_HOME, the provider-table skeleton). brand— the one source of naming truth (brand::BRAND,brand::env_name).locate— the unifiedlocate::LocatorhonoringINDUSAGI_HOMEon all state paths.version— the single-sourceversion::VERSION(kills the TS 3-way drift).ids— ULID id helpers.errors— the shared closederrors::CoreErrorvocabulary.channel— the re-iterablechannel::Channelstream factory.time— the single wall-clock surface (time::now_ms, the canonicalDate.now()analogue) that replaces a dozen per-module copies.
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§
- Cancellation
Token - A token which can be used to signal a cancellation request to one or more tasks.