-
Couldn't load subscription status.
- Fork 563
Example verus proofs #813
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
base: main
Are you sure you want to change the base?
Example verus proofs #813
Changes from all commits
cf5bfed
42237f8
b3fa526
576220e
efe8de9
22d6728
b1115fe
5ef1adb
1eeca24
119c118
2d69fd2
87e1993
17596df
d71b687
2e1f58c
4dc0aa9
3d96095
efcddb3
41b079f
589f4e8
8efe767
f728bc5
fa70874
aab1cfb
da914d9
7752f1f
c0c0c5c
e69a4f7
e9bbcd6
874fe9f
e9c7b86
e1958f6
7634150
49977eb
6b11e03
35807d7
87b786d
08fcebe
a4742a0
8ea7565
22448a4
72c72da
59ca9e0
1e09603
713984a
c396de1
6bbac4d
a7e1619
a53b096
1276e53
9c3832f
6f58cdc
817cb31
a533ef2
96980f9
e4f986d
b28b191
4acc9ab
53c0db0
a233338
46527c6
d07e3e1
8925f5d
061c005
84ec155
a132cdb
e6eba84
efc6a60
801a994
fd8e5d4
f46cb70
34767b7
de2f6c8
4f72e37
1c87cbf
ad44c8c
ec6d1e3
baef1d1
b5f85a9
1e39b83
6d6138b
2559aee
506f8ae
9942fc2
74999ce
fe7a70c
7f2eac5
ede60fb
d75c942
d9bf793
cea8650
1292443
226f417
824c76c
9dccb0e
731d328
0d057e9
a409fc5
e61cdd3
734329e
ffe9fac
589c87d
e0fe40f
c203a81
fbb93fd
fc1c61c
dd2697c
8fa7799
dd6d82f
557e9cf
6586119
6c0aed2
5a73321
a7c5cda
f033d53
141388d
15c9087
2d6126a
7e7a24c
4b6f0c2
2ffb7b5
e52f2e6
e12f9c8
b419698
9219b23
8cfd57a
d85fd1e
f125c7f
cf0ebea
9ea42a5
5f53876
37f6fe0
b6d8986
d81a76e
8cb27dd
8016706
f537584
50087ae
69d037f
836be91
264b4cd
90d864b
e5bc3e7
7e7c9d1
eab2a53
27d765d
6b04a2a
6e28b6d
854cf1c
cd5f285
4a27f20
1cc1685
58e5204
9485942
6381b2e
62f7d2c
2f9efe1
8227806
b5ee959
d89bed9
110cf9d
ecf01d0
0b1ba17
a01fbdb
e5d4e09
321e756
08b5128
ce13ef5
8c3c6a6
6f1a629
b5d85d5
b47c9c7
933dfcb
b3ebfca
b7abd0b
a607824
87d943a
4ef0725
39beca0
cfe83c1
38f9126
3b1ae0a
e67cb37
41ab36e
bb269f3
6a1f76f
af7a880
71d9cde
bc1ab78
7625da9
ee31ce1
f2738fa
317396f
e46d583
ba9ff09
08190af
71a82b4
3ab992d
f8766c5
660ba72
b5426a8
1d17065
d7d8e07
38fac50
c0a74cf
b0d028a
378cdb5
5efc78c
1255d8e
423d620
22890c0
e52fd05
4b006bd
7ab61f7
49446f6
9cb6018
28f303e
241738c
552989a
bcc015a
fc7e60b
401ec4c
4379c7b
b834c05
3e2c80c
fd4eec6
07f1765
0ef0f3d
b687b10
25bc694
c3f8fbd
fff73f2
8d7e9e2
435f0fd
856e203
0ed1f5e
55d56c8
bc45994
8ab4e79
a81e537
538f7ed
506bf24
f5c1d42
34e387f
6080805
ccd3690
253fcfd
484d4b6
8d473e5
cfd0e38
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,30 +43,6 @@ jobs: | |
| RUSTFLAGS: '--cfg curve25519_dalek_backend="fiat"' | ||
| run: cargo test --target ${{ matrix.target }} | ||
|
|
||
| # Default no_std test only tests using serial across all crates | ||
| build-nostd-fiat: | ||
| name: Build fiat on no_std target (thumbv7em-none-eabi) | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - crate: curve25519-dalek | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: stable | ||
| targets: thumbv7em-none-eabi | ||
| - uses: taiki-e/install-action@cargo-hack | ||
| # No default features build | ||
| - name: no_std fiat / no feat ${{ matrix.crate }} | ||
| env: | ||
| RUSTFLAGS: '--cfg curve25519_dalek_backend="fiat"' | ||
| run: cargo build -p ${{ matrix.crate }} --target thumbv7em-none-eabi --release --no-default-features | ||
| - name: no_std fiat / cargo hack ${{ matrix.crate }} | ||
| env: | ||
| RUSTFLAGS: '--cfg curve25519_dalek_backend="fiat"' | ||
| run: cargo hack build -p ${{ matrix.crate }} --target thumbv7em-none-eabi --release --each-feature --exclude-features default,std,getrandom | ||
|
|
||
| test-serial: | ||
| name: Test serial backend | ||
|
|
@@ -143,3 +119,23 @@ jobs: | |
| - run: cargo build --no-default-features --features serde | ||
| # Also make sure the AVX2 build works | ||
| - run: cargo build --target x86_64-unknown-linux-gnu | ||
|
|
||
| verus: | ||
| name: Run `cargo verify verus` | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
| - name: Install Rust toolchain | ||
| uses: dtolnay/[email protected] | ||
| - name: Install Verus | ||
| run: | | ||
| wget https://github.com/verus-lang/verus/releases/download/release%2F0.2025.08.01.33c6cec/verus-0.2025.08.01.33c6cec-x86-linux.zip | ||
| unzip verus-0.2025.08.01.33c6cec-x86-linux.zip | ||
| mv verus-x86-linux ~/.cargo/bin | ||
| cd ~/.cargo/bin | ||
| ln -s verus-x86-linux/cargo-verus | ||
| - name: Run test | ||
| run: | | ||
| cargo-verus verify -- --smt-option smt.random_seed=0 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Checking the proofs in CI |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,3 +11,5 @@ build*.txt | |
| *.bak | ||
|
|
||
| *.s | ||
| .aider* | ||
| .verus-solver-log | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are no proofs in the u32 folder. But we had to change the types for compatibility because we got rid of tuple structs in the u64 folder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost all of the CI still works. The no_std tests annoyingly don't. I haven't looked into this deeply yet---I hope it's something trivial
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See Beneficial-AI-Foundation#59 for an example of the CI passing