MCPcopy Index your code
hub / github.com/cosmos/cosmos-rust

github.com/cosmos/cosmos-rust @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
2,732 symbols 3,697 edges 282 files 117 documented · 4%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cosmos Rust

This is a place for commonly shared rust resources related to the Cosmos ecosystem.

Crates

Name Description crates.io docs.rs CI Build
[cosmrs] Cosmos SDK for Rust crates.io docs.rs CI
[cosmos‑sdk‑proto] Proto and gRPC definitions crates.io docs.rs CI

Merge Policy

The goal of this repository is to create a place for upstream consensus in the Cosmos Rust community. Different applications will have different requirements from libraries, this repo should strive to contain only code that is useful and actively used by more than one organization.

Current maintainers of this repo include Informal Systems, Iqlusion, Confio, and Althea

A pull request should be approved by representatives from at least two of those organizations before being merged. In order to update membership or update these rules a pull request changing this description must be approved.

Branch etiquette

Branches in this repo should be of the format git-username/branch-name in order to reduce clutter and prevent collisions. There is an installed git hook that will automatically enforce that branches at least contain a /

Building Proto files from source

The single proto-build crate in this repo clones and rebuilds proto files for all other crates, simply make the required edits in main.rs and run

cargo run

Minimum Supported Rust Version

Rust 1.72

Extension points exported contracts — how you extend this code

Msg (Interface)
Message types. Types which impl this trait map one-to-one with a corresponding Protocol Buffers type, but can assert ad [30 …
cosmrs/src/tx/msg.rs
Service (Interface)
(no doc) [43 implementers]
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.tx.v1beta1.tonic.rs
EcdsaSigner (Interface)
ECDSA/secp256k1 signer trait. This is a trait which enables plugging any backing signing implementation which produces [1 …
cosmrs/src/crypto/secp256k1/signing_key.rs
ParseOptional (Interface)
Extension traits for optionally parsing non-empty strings. This is a common pattern in Cosmos SDK protobufs. [2 implementers]
cosmos-sdk-proto/src/traits.rs
MessageExt (Interface)
Extension trait for [`Message`]. [1 implementers]
cosmos-sdk-proto/src/traits.rs
Service (Interface)
(no doc) [1 implementers]
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.node.v1beta1.tonic.rs
Service (Interface)
(no doc) [1 implementers]
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.tendermint.v1beta1.tonic.rs

Core symbols most depended-on inside this repo

as_ref
called by 404
cosmrs/src/base/denom.rs
to_string
called by 63
cosmrs/src/crypto/public_key.rs
clone
called by 30
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.gov.v1.tonic.rs
clone
called by 28
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.group.v1.tonic.rs
clone
called by 21
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.staking.v1beta1.tonic.rs
clone
called by 17
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.bank.v1beta1.tonic.rs
clone
called by 17
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.distribution.v1beta1.tonic.rs
clone
called by 12
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.gov.v1beta1.tonic.rs

Shape

Method 1,279
Class 1,267
Enum 103
Interface 49
Function 34

Languages

Rust100%

Modules by API surface

cosmos-sdk-proto/src/prost/wasmd/cosmwasm.wasm.v1.rs104 symbols
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.group.v1.rs85 symbols
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.staking.v1beta1.rs74 symbols
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.group.v1.tonic.rs74 symbols
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.staking.v1beta1.tonic.rs60 symbols
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.distribution.v1beta1.rs55 symbols
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.distribution.v1beta1.tonic.rs52 symbols
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.bank.v1beta1.tonic.rs52 symbols
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.gov.v1.rs47 symbols
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.gov.v1.tonic.rs46 symbols
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.bank.v1beta1.rs46 symbols
cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.auth.v1beta1.tonic.rs40 symbols

For agents

$ claude mcp add cosmos-rust \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact