Skip to content

Compatibility with new pointer-wrapper ProgMem #1

Open
@Cryptjar

Description

@Cryptjar

In my latest commit, I changed the internals of the ProgMem wrapper from being a wrapper around a value that is stored in progmem to a wrapper around a pointer that point to another static that in turn is stored in progmem. I haven't merged this yet to the v0.2 branch (see Cryptjar/avr-progmem-rs#5), because I noticed this will break your avr_progmem_str macro.

Unfortunately, this change of ProgMem makes its constructor to take a pointer instead of a value. This means that PmString can't be created by-value either (such as an array), and thus I had to remove the PmString::from_array constructor that your avr_progmem_str macro uses, sorry.

However, the good news is, that the new way in which the PmStrings are created means that there is no more need for #![feature(const_option)], which seems to have been the motivation for avr_progmem_str.

cc Cryptjar/avr-progmem-rs#3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions