Registry / other / scale-info

scale-info

JSON →
library2.11.6rscratesunverified

Provides info about SCALE encodable Rust types for use in Substrate-based blockchains.

# Cargo.toml [dependencies] scale-info = "2.11.6"
INSTALL
IMPORT
SIG · SCALE-INFO
S
scale-info
otherrustv2.11.6
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.

TypeInfo
use scale_info::TypeInfo;

Deriving TypeInfo for a custom struct and inspecting its type metadata.

use scale_info::TypeInfo; #[derive(TypeInfo)] struct MyStruct { value: u32, } let info = MyStruct::type_info(); println!("Type path: {:?}", info.path());
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.11.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
scale-info — cargo add scale-info · libregistry