-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support no-std #137
Support no-std #137
Conversation
74ec4c1
to
b72c301
Compare
Doesn't seem to be fully working yet.. |
5219b3a
to
25e039a
Compare
building works correctly, can't seem to get it to work correctly with the correct |
The |
Should be a lot closer now, just need to get dlc-manager working. There are a lot of test dependencies that rely on Looks like also unit test CI fails because we can't enable std and no-std together so the |
So seems the only way to get |
I'm still having the same issue with miniscript in the dlc crate (which also seem to be the error that occur on CI). Is there more to it than running |
you need to disable default features as well
if that still doesn't work you might need to do a |
Thanks that worked! But yeah not sure what's the best solution, having tests in a separate crate is definitely not great. Maybe some weird feature flag fu could do it? |
c6102dc
to
ef73c15
Compare
This should be ready after #145
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work thanks! Just a couple of nits and to understand the reasons for some features.
#[cfg(all(feature = "no-std", not(feature = "std")))] | ||
extern crate hashbrown; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is unnecessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I've never had to use this before but I couldn't get it to work without it. Seems like rust-miniscript does it as well so maybe it is just required for this crate?
Fixed the unnecessary features, good call out! |
Actually seems like the |
7de0b82
to
9ef9bab
Compare
@Tibo-lg sorry totally missed your comment. I made it so when we are not std that it uses |
8b14339
to
94d906a
Compare
94d906a
to
3ad57a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Should allow for no-std libraries to use rust-dlc