Skip to content

lightning-invoice create cannot be used with no-std, serde, and default-features = false #2185

Description

@benthecarman

When compiling I get this error
cargo check --features no-std --features serde --no-default-features

error: cannot find macro `format` in this scope
    --> lightning-invoice/src/lib.rs:1651:34
     |
1651 |             .map_err(|e| D::Error::custom(format!("{:?}", e)))?;
     |                                           ^^^^^^
     |
     = help: consider importing this macro:
             alloc::format

error: could not compile `lightning-invoice` (lib) due to previous error

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