Skip to content

Move generic.rs contents to other crate #427

@burrbull

Description

@burrbull

I don't see sense to built this code in each file that svd2rust generates.

I propose to move it in new crate with will be dependency for pacs.

It should have short name. Maybe (pa or ra as abbreviation of Peripheral Access an Register Access).

I see only advantages, no disadvantages:

  • we can simplify svd2rust code, remove some tricks in stm32-rs
  • we can use Cargo.toml for optionally enabling features like atomic operations (Support for atomic bitwise operations in MSP430 PAC API #407)
  • use "semver" to control that crates have identical API
  • avoid potential name conflicts when reexport generic.rs

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