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

Fix Compilation Errors When Running Tests with --no-default-features #256

Open
5 tasks
varshith257 opened this issue Oct 11, 2024 · 0 comments
Open
5 tasks

Comments

@varshith257
Copy link
Contributor

varshith257 commented Oct 11, 2024

Background and Motivation

The --no-default-features flag in our CI pipeline is generating around 800 errors during testing, as some parts of the code rely on std and default features. While the code is expected to be compatible with no_std, the tests are not yet adapted for this.

Steps to Reproduce:

Run tests using the following command:

cargo test --no-default-features --workspace

Observe the 769 errors related to missing imports and methods tied to std and Vec etc...

Tasks to be done:

Task List:

  • Review and fix missing std and Vec imports
  • Conditionally use alloc for environments where std is not enabled
  • Fix errors related to missing methods such as to_string()
  • Review test cases for compatibility in no_std mode
  • (Optional) Clean up any unused imports related warnings
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

No branches or pull requests

1 participant