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

Kani module stubs for development #3778

Open
ajrudzitis opened this issue Dec 13, 2024 · 1 comment
Open

Kani module stubs for development #3778

ajrudzitis opened this issue Dec 13, 2024 · 1 comment
Labels
[C] Feature / Enhancement A new feature request or enhancement to an existing feature. T-User Tag user issues / requests

Comments

@ajrudzitis
Copy link

Requested feature: Kani module stubs for development
Use case:

Kani is currently difficult to use in an IDE because the kani module is only injected when running cargo kani. This means that while writing harnesses in the IDE along with my code, the IDE does not recognize any statements like kani::any(). This adds friction to writing new test harnesses and I cannot use facilities in the IDE to identify issues before I run my harness.

If there could a module published that provided stubs for the Kani API, it would be useful for allowing the IDE to do basic type checks, etc.

@ajrudzitis ajrudzitis added the [C] Feature / Enhancement A new feature request or enhancement to an existing feature. label Dec 13, 2024
@carolynzech carolynzech added the T-User Tag user issues / requests label Dec 13, 2024
@celinval
Copy link
Contributor

Yes, this is definitely something that's been in our radar. I think this would also play nicely with things like #2035.

I think the main question is how to ensure compatibility between the crate version a user is importing and the one Kani is using. Especially if dependencies start exporting things like Arbitrary implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C] Feature / Enhancement A new feature request or enhancement to an existing feature. T-User Tag user issues / requests
Projects
None yet
Development

No branches or pull requests

3 participants