Skip to main content

vstd_extra/external/
mod.rs

1//! Specifications for functions from Rust standard library but not specified in `vstd`.
2//!
3//! These specifications are determined with careful inspection of the std library source code and documentation, and trusted as TCB.
4//! They are subject to change if `vstd` covers more cases in the future.
5pub mod acpi;
6mod bitvec;
7pub mod bytemuck;
8pub mod cmp;
9pub mod convert;
10pub mod fmt;
11pub mod ilog2;
12pub mod int_specs;
13#[cfg(target_arch = "x86_64")]
14pub mod io_port;
15pub mod iter;
16pub mod nonnull;
17pub mod ptr;
18pub mod range;
19pub mod slice;
20pub mod smallvec;
21pub mod smart_ptr;
22pub mod str;
23pub mod time;
24pub mod vec;
25#[cfg(target_arch = "x86_64")]
26pub mod x86;
27pub mod xmas_elf;
28
29pub use acpi::*;
30pub use bitvec::*;
31pub use cmp::*;
32pub use ilog2::*;
33pub use int_specs::*;
34#[cfg(target_arch = "x86_64")]
35pub use io_port::*;
36pub use iter::*;
37pub use nonnull::*;
38pub use ptr::*;
39pub use range::*;
40pub use slice::*;
41pub use smallvec::*;
42pub use smart_ptr::*;
43pub use str::*;
44pub use time::*;
45pub use vec::*;
46#[cfg(target_arch = "x86_64")]
47pub use x86::*;
48
49use vstd::prelude::*;
50
51verus! {
52
53pub assume_specification[ core::hint::spin_loop ]()
54    opens_invariants none
55    no_unwind
56;
57
58} // verus!