MARS documentation
Rust librariesmars-shard

mars-shard

MARS-S prototype affinity, topology, shadow copies, resolution, and cross-shard coordination.

Prototype / draft — separate from production registry operations.

MARS-S prototype affinity, topology, shadow copies, resolution, and cross-shard coordination.

This crate is experimental. Its integration is feature-gated by mars-server/sharding and is separate from the PostgreSQL production reference.

Package contract

Workspace version: 0.1.0. Rust edition 2021, minimum declared toolchain 1.81, Apache-2.0 license. Protocol wire version stays 1.0.0.

Use the source checkout as the installation authority; package registry publication is not verified by this documentation build. In a consumer Cargo manifest, use an explicit path dependency to your checked-out crate.

[dependencies]
mars-shard = { path = "../mars/mars-shard" }

Feature flags

FeatureEnables

No crate-specific feature flags are declared.

Public root modules

affinity, cross_shard, error, gal, lifecycle, resolution, shadow, topology. Conditional availability follows the source attributes.

Public module reference

ModuleSource
cratemars-shard/src/lib.rs
affinitymars-shard/src/affinity.rs
cross_shardmars-shard/src/cross_shard.rs
errormars-shard/src/error.rs
galmars-shard/src/gal.rs
lifecyclemars-shard/src/lifecycle.rs
resolutionmars-shard/src/resolution.rs
shadowmars-shard/src/shadow.rs
topologymars-shard/src/topology.rs

API documentation boundary

The linked pages contain syntax-derived public declarations, method signatures, and documentation comments. They omit function bodies and constant values, and skip test-only modules. Compiler-resolved re-exports, trait resolution, and target availability require Rustdoc with the selected feature profile; no backend build or conformance tests ran here.

On this page