mars-protocol
Wire contracts, publisher signing, hashing, lifecycle, query AST, federation, and event types.
Wire contracts, publisher signing, hashing, lifecycle, query AST, federation, and event types.
Use this crate to serialize exact registry contracts and perform local cryptographic preparation. Runtime authorization and operator trust are enforced by the server separately.
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-protocol = { path = "../mars/mars-protocol" }Feature flags
| Feature | Enables |
|---|---|
default | Marker feature |
contracts | dep:schemars, dep:utoipa |
sharding | Marker feature |
sigil | dep:async-trait |
mock-anchor | sigil |
prod | Marker feature |
Public root modules
anchoring, api, bonds, contract, entry, errors, events, federation, hash, lifecycle, marsql, relationships, signature, types, anchor. Conditional availability follows the source attributes.
Public module reference
| Module | Source |
|---|---|
| crate | mars-protocol/src/lib.rs |
| anchoring | mars-protocol/src/anchoring.rs |
| api | mars-protocol/src/api.rs |
| bonds | mars-protocol/src/bonds.rs |
| contract | mars-protocol/src/contract.rs |
| entry | mars-protocol/src/entry.rs |
| errors | mars-protocol/src/errors.rs |
| events | mars-protocol/src/events.rs |
| federation | mars-protocol/src/federation.rs |
| hash | mars-protocol/src/hash.rs |
| lifecycle | mars-protocol/src/lifecycle.rs |
| marsql | mars-protocol/src/marsql/mod.rs |
| marsql::ast | mars-protocol/src/marsql/ast.rs |
| marsql::evaluator | mars-protocol/src/marsql/evaluator.rs |
| marsql::parser | mars-protocol/src/marsql/parser.rs |
| relationships | mars-protocol/src/relationships.rs |
| signature | mars-protocol/src/signature.rs |
| types | mars-protocol/src/types.rs |
| anchor | mars-protocol/src/anchor.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.