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

Enable Kani to verify the standard library crates #3152

Open
4 tasks
celinval opened this issue Apr 19, 2024 · 1 comment
Open
4 tasks

Enable Kani to verify the standard library crates #3152

celinval opened this issue Apr 19, 2024 · 1 comment
Assignees

Comments

@celinval
Copy link
Contributor

celinval commented Apr 19, 2024

As we experiment with verifying the standard library, it might be helpful to enable users to verify the standard library crates directly, instead of having to create wrappers. Those wrappers can also only be used to verify public components.

There are a few things that need to be done in order to do that:

  • Create a #[no_core] Kani library #3153
  • Instrument contracts in core without proc_macros. I believe procedural macros are still allowed.
  • Modify std fork to declare kani module using kani_core crate.
  • Add an option to Kani to verify a custom version of the standard library.
@celinval celinval self-assigned this Apr 19, 2024
@celinval
Copy link
Contributor Author

See rust-lang/wg-cargo-std-aware#7 for workarounds on how to build a modified std library.

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