Registry / build-tool / svd2rust

svd2rust

JSON →
library0.37.1rscratesunverified

Generate Rust register maps (structs) from SVD files for embedded development.

# Cargo.toml [dependencies] svd2rust = "0.37.1"
INSTALL
IMPORT
SIG · SVD2RUST
S
svd2rust
build-toolrustv0.37.1
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.

generate
use svd2rust::generate;

Read an SVD file and generate Rust register map code.

use svd2rust::generate; let svd_content = std::fs::read_to_string("device.svd").unwrap(); let generated = generate(&svd_content).unwrap(); println!("Generated code:\n{}", generated);
Debug
Known issues
gotchaGenerated code may require specific target architecture features.
fix
Ensure the target matches the SVD file and enable appropriate target features.
affects: *
Upgrade
Version history
0.37.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources
svd2rust — cargo add svd2rust · libregistry