Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Make crate no_std compatible #53

Merged
merged 1 commit into from
Dec 7, 2023
Merged

Conversation

tnull
Copy link
Collaborator

@tnull tnull commented Nov 29, 2023

Fixes #29.

Copying the pattern from the lightning crate, we re-export alloc/hashbrown or std depending on whether the std feature is set. We also copy some sync types from the lightning crate that are no-std compatible.

Moreover, we check no-std compatibility in CI and, since we already touched most of them, reorder and cleanup the use statements in all modules.

One thing we don't tackle in this PR is validating the expiry times of OpeningFeeParams in no-std. This is now tracked separately in lightningdevkit/rust-lightning#3471.

@tnull tnull changed the title Make Make crate no_std compatbile Nov 29, 2023
@tnull tnull force-pushed the 2023-11-no-std branch 4 times, most recently from 089bb91 to ac1a539 Compare November 29, 2023 10:16
@tnull tnull changed the title Make crate no_std compatbile Make crate no_std compatible Nov 29, 2023
Copying the pattern from the `lightning` crate, we re-export
`alloc`/`hashbrown` or `std` depending on whether the `std` feature is
set. We also copy some `sync` types from the `lightning` crate that
are `no-std` compatible.

Moreover, we check no-std compatibility in CI and, since we already
touched most of them, reorder and cleanup the `use` statements in all
modules.
@tnull tnull merged commit d896909 into lightningdevkit:main Dec 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add no_std support
2 participants