]> git.bitcoin.ninja Git - rust-lightning/commit
Move `UntrustedString` and `PrintableString` to `lightning-types`
authorMatt Corallo <git@bluematt.me>
Fri, 9 Aug 2024 01:26:21 +0000 (01:26 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 13 Aug 2024 12:54:59 +0000 (12:54 +0000)
commit3b3774ee693c417b5131f79b0c34cca798b4774a
treeedc576735902b28f53cc2689ed30cfeea008dba2
parent0c5922e92a3ec3fdf9226cceeb9057ad9aa9dc19
Move `UntrustedString` and `PrintableString` to `lightning-types`

`lightning-invoice` currently has a dependency on the entire
`lightning` crate just because it wants to use some of the useful
types from it. This is obviously backwards and leads to some
awkwardness like the BOLT 11 invoice signing API in the `lightning`
crate taking a `[u5]` rather than a `Bolt11Invoice`.

This takes one more step, moving the `UntrustedString` and
`PrintableString` types to `lightning-types`.
lightning-types/src/lib.rs
lightning-types/src/string.rs [new file with mode: 0644]
lightning/src/util/mod.rs
lightning/src/util/ser.rs
lightning/src/util/string.rs [deleted file]