Skip to content
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

no_std support #778

Open
SethDusek opened this issue Oct 31, 2024 · 0 comments · May be fixed by #782
Open

no_std support #778

SethDusek opened this issue Oct 31, 2024 · 0 comments · May be fixed by #782
Assignees

Comments

@SethDusek
Copy link
Collaborator

SethDusek commented Oct 31, 2024

Add no_std support for embedded environments where std is not available:

  • Replace collection imports from std with imports from alloc::
  • Replace instances of io::Write with core2::Write only if no_std is enabled
  • For usages of HashMap consider replacing them with BTreeMap, or hashbrown's hashmap. sigma-rust already uses hashbrown::HashMap internally in some places
  • Make p2p crate an optional feature in ergo-lib. This would also be useful for normal library users since ergo-p2p brings in tokio as a dependency
@SethDusek SethDusek self-assigned this Oct 31, 2024
@SethDusek SethDusek linked a pull request Nov 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants