Registry / networking / cumulus-primitives-core

cumulus-primitives-core

JSON →
library0.25.0rscratesunverified

Core primitive types and traits for Cumulus, the Substrate-based parachain framework.

# Cargo.toml [dependencies] cumulus-primitives-core = "0.25.0"
INSTALL
IMPORT
SIG · CUMULUS-PRIMITIVES
C
cumulus-primitives-core
networkingrustv0.25.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ParaId
use cumulus_primitives_core::ParaId;

Create a new ParaId for a parachain.

use cumulus_primitives_core::ParaId; fn main() { let para_id = ParaId::new(100); println!("Parachain ID: {}", para_id); }
Debug
Known issues
gotchaThis crate is part of the Polkadot SDK and requires specific Substrate dependencies and runtime configuration.
fix
Ensure you have the correct Substrate dependencies and feature flags enabled (e.g., 'std' for native builds).
affects: >=0.25.0
Upgrade
Version history
0.25.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Meta
1
Amazon
1
OpenAI (training)
1
Resources
cumulus-primitives-core — cargo add cumulus-primitives-core · libregistry