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

feat: anychain-core, anychain-ethereum no_std support #125

Closed
shuimuliang opened this issue Sep 25, 2023 · 1 comment
Closed

feat: anychain-core, anychain-ethereum no_std support #125

shuimuliang opened this issue Sep 25, 2023 · 1 comment
Assignees
Milestone

Comments

@shuimuliang
Copy link
Collaborator

No description provided.

@shuimuliang shuimuliang self-assigned this Sep 25, 2023
@shuimuliang shuimuliang changed the title feat: stm32 mcu board support feat: no_std support Nov 22, 2023
@shuimuliang
Copy link
Collaborator Author

shuimuliang commented Nov 24, 2023

no_std support in serde
https://serde.rs/no-std.html

  • Remove unused dependencies
  • Comment out println statements
  • Replace println with assert in test cases
  • Push common crate under lib.rs to specific crate handling
  • Change the return type of fn to_basic_unit in amount.rs to Result<String, String>
  • Define std error and no_std error separately for different cases
  • Switch from thiserror to thiserror-core and compile using nightly toolchain
  • Set default-features=false at the top level of the workspace
  • base58 -> bs58
  • move bls-signatures to special crate, e.g: anychain-filecoin
  • rlp default-features = false
  • cargo test --all-features
  • ethereum lib no_std
  • anychain-core::hex -> hex
  • map to_wei/to_basic_unit error to anychain_core::amount::AmountError
  • anychain-core default-features = false

@shuimuliang shuimuliang changed the title feat: no_std support feat: anychain-core, anychain-ethereum no_std support Dec 7, 2023
@shuimuliang shuimuliang added this to the 2024-m1 milestone Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant