Skip to content

Output Cargo.toml dependencies and features #780

Description

@Emilgardis

Should we have a way to make svd2rust output a [dependencies] and [features] given a set of arguments?

svd2rust cargo-toml --impl-defmt defmt -i STM32F30x.svd

would give

[dependencies]
critical-section = { version = "1.0", optional = true }
cortex-m = "0.7"
cortex-m-rt = { version = "0.7", optional = true }
vcell = "0.1"
defmt = { version = "0.3", optional = true }


[features]
rt = ["cortex-m-rt/device"]
defmt = ["dep:defmt"]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions