Skip to content

Commit

Permalink
ci(hax): update the hax setup (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
ROMemories authored Sep 11, 2024
2 parents c57742f + 4ebe306 commit 206a55c
Show file tree
Hide file tree
Showing 6 changed files with 284 additions and 49 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/hax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
uses: hacspec/hax-actions@main
with:
# pin hax to known-working
hax_reference: 533f87048f68705e8884ff9516db1371e8a2773d
hax_reference: 5e3e6d2028db0ca8f583b427f770bbb7c26c7bed

- name: 🏃 Extract `riot-rs-runqueue`
working-directory: ./src/riot-rs-runqueue
run: |
rm -f proofs/fstar/extraction/*.fst*
cargo hax into fstar
- name: 🏃 Verify `riot-rs-runqueue`
- name: 🏃 Lax check `riot-rs-runqueue`
working-directory: ./src/riot-rs-runqueue/proofs/fstar/extraction
run: make
run: OTHERFLAGS="--lax" make
64 changes: 64 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ celcius = "celcius" # Until embedded-aht20 is fixed
extend-exclude = [
"doc/*.svg",
"src/riot-rs-embassy/src/wifi/cyw43/firmware/README.md",
"src/riot-rs-runqueue/proofs/fstar/extraction/Makefile",
]
1 change: 1 addition & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ unknown-registry = "deny"
unknown-git = "deny"
# List of URLs for allowed Git repositories
allow-git = [
"https://github.com/hacspec/hax",
"https://github.com/smoltcp-rs/smoltcp",
"https://github.com/twitchyliquid64/usbd-hid",
"https://gitlab.com/oscore/liboscore",
Expand Down
6 changes: 6 additions & 0 deletions src/riot-rs-runqueue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ workspace = true

[dependencies]
defmt = { workspace = true, optional = true }

# This is required so that F* can find the required F* model of the Rust core
# lib, as documented in the hax documentation:
# https://hacspec.org/book/quick_start/intro.html#setup-the-crate-you-want-to-verify
[target.'cfg(hax)'.dependencies]
hax-lib = { git = "https://github.com/hacspec/hax", rev = "5e3e6d2028db0ca8f583b427f770bbb7c26c7bed" }
Loading

0 comments on commit 206a55c

Please sign in to comment.