Skip to content

Feature request for verus_spec attribute :> #121

@ziqiaozhou

Description

@ziqiaozhou

The verus_spec examples are here
verus/source/rust_verify/example/syntax_attr.rs at main · verus-lang/verus
verus/source/rust_verify_test/tests/syntax_attr.rs at main · verus-lang/verus.

I think the function and loop specifications are relative stable.

In most cases, verusfmt just format attributes #[verus_spec(...)] and does not need to touch executable codes.
Inside function body, we may need to add proof!{} to insert proofs following verus!{} syntax and it would be great if the verusfmt can format inside proof!

@jaybosamiya, this is not an urgent request—just noting it here for your reference whenever you have some spare time.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions