Skip to content

Commit 7d8cca3

Browse files
feat: rename awkernel_async_lib_verified to awkernel_lib_verified (#774)
1 parent bc71e71 commit 7d8cca3

22 files changed

Lines changed: 26 additions & 28 deletions

File tree

‎.cargo/config.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ udeps_lib_rv64 = "udeps --package awkernel_lib --no-default-features --features
4040
udeps_async_lib = "udeps --package awkernel_async_lib --no-default-features --features std"
4141
udeps_drivers_x86 = "udeps --package awkernel_drivers --no-default-features --features x86"
4242
udeps_drivers_raspi = "udeps --package awkernel_drivers --no-default-features --features aarch64 --features raspi --features pl011"
43-
udeps_async_lib_verified = "udeps --package awkernel_async_lib_verified"
43+
udeps_lib_verified = "udeps --package awkernel_lib_verified"
4444

4545
[target.'cfg(target_os = "linux")']
4646
rustflags = ["-C", "link-arg=-lc", "-C", "link-arg=-lpthread"]

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ members = [
66
"userland",
77
"x86bootdisk",
88
"awkernel_async_lib",
9-
"awkernel_async_lib_verified",
9+
"awkernel_lib_verified",
1010
"awkernel_lib",
1111
"awkernel_drivers",
1212
"applications/awkernel_services",

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ $ cargo binstall mdbook-mermaid
3737
- library used by both [kernel](./kernel/) and [awkernel_async_lib](./awkernel_async_lib/)
3838
- [awkernel_async_lib](./awkernel_async_lib/)
3939
- asynchronous library for no_std
40-
- [awkernel_async_lib_verified](./awkernel_async_lib_verified/)
41-
- verified library for awkernel_async_lib
40+
- [awkernel_lib_verified](./awkernel_lib_verified/)
41+
- shared data structures with Kani proof harnesses, re-exported as `awkernel_lib::verified`
4242
- pure Rust (no dependencies on external functions and no inline assembly)
4343
- [awkernel_futures_macro](./awkernel_futures_macro/)
4444
- [awkernel_macros](./awkernel_macros/)
@@ -50,7 +50,7 @@ $ cargo binstall mdbook-mermaid
5050

5151
```mermaid
5252
graph TD;
53-
awkernel_async_lib-->awkernel_async_lib_verified;
53+
awkernel_lib-->awkernel_lib_verified;
5454
awkernel_async_lib-->awkernel_futures_macro;
5555
awkernel_async_lib-->awkernel_lib;
5656
awkernel_lib-->awkernel_sync;

‎SPEC_TEST.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
| [Exception Handler of AArch64](./kernel/asm/aarch64/exception.S) | [exception.S](./specification/kernel/asm/aarch64/exception.S/) | TLA+ |
1717
| [Context Switch of AArch64](./awkernel_lib/src/context/aarch64.rs) | [context/aarch64](./specification/awkernel_lib/src/context/aarch64/) | TLA+ |
1818
| [Context Switch of x86_64](./awkernel_lib/src/context/x86_64.rs) | [context/x86](./specification/awkernel_lib/src/context/x86/) | TLA+ |
19-
| [Delta List](./awkernel_async_lib_verified/src/delta_list.rs) | unit test | Kani |
20-
| [Ring Queue](./awkernel_async_lib_verified/src/ringq.rs) | unit test | Kani |
19+
| [Delta List](./awkernel_lib_verified/src/delta_list.rs) | unit test | Kani |
20+
| [Ring Queue](./awkernel_lib_verified/src/ringq.rs) | unit test | Kani |
2121
| Sleep CPU (no_std) | [awkernel_async_lib/src/task/wake_workers_no_std](./specification/awkernel_async_lib/src/task/wake_workers_no_std) | SPIN |
2222
| Sleep CPU (std) | [awkernel_async_lib/src/task/wake_workers](./specification/awkernel_async_lib/src/task/wake_workers) | SPIN |
2323
| [if_net](./awkernel_lib/src/net/if_net.rs) | [awkernel_lib/src/net/if_net](./specification/awkernel_lib/src/net/if_net) | SPIN |

‎awkernel_async_lib/Cargo.toml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ features = ["alloc", "async-await", "async-await-macro"]
2828
path = "../awkernel_lib"
2929
default-features = false
3030

31-
[dependencies.awkernel_async_lib_verified]
32-
path = "../awkernel_async_lib_verified"
33-
3431
[dependencies.awkernel_futures_macro]
3532
path = "../awkernel_futures_macro"
3633

‎awkernel_async_lib/src/channel/bounded.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
1717
use crate::{pubsub::Lifespan, r#yield};
1818
use alloc::sync::Arc;
19-
use awkernel_async_lib_verified::ringq::RingQ;
2019
use awkernel_lib::{
2120
delay::uptime,
2221
sync::mutex::{MCSNode, Mutex},
22+
verified::ringq::RingQ,
2323
};
2424
use core::task::{Poll, Waker};
2525
use futures::Future;

‎awkernel_async_lib/src/pubsub.rs‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ use alloc::{
3939
sync::Arc,
4040
vec::Vec,
4141
};
42-
use awkernel_async_lib_verified::ringq::RingQ;
43-
use awkernel_lib::sync::{
44-
mutex::{MCSNode, Mutex},
45-
rwlock::RwLock,
42+
use awkernel_lib::{
43+
sync::{
44+
mutex::{MCSNode, Mutex},
45+
rwlock::RwLock,
46+
},
47+
verified::ringq::RingQ,
4648
};
4749
use core::{
4850
pin::Pin,

‎awkernel_async_lib/src/scheduler.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ use crate::{
1010
};
1111
use alloc::collections::{binary_heap::BinaryHeap, btree_map::BTreeMap};
1212
use alloc::sync::Arc;
13-
use awkernel_async_lib_verified::delta_list::DeltaList;
1413
use awkernel_lib::{
1514
cpu::{num_cpu, CpuSet},
1615
sync::mutex::{MCSNode, Mutex},
16+
verified::delta_list::DeltaList,
1717
};
1818

1919
#[cfg(not(feature = "std"))]

‎awkernel_drivers/Cargo.toml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ optional = true
4343
path = "../awkernel_lib"
4444
default-features = false
4545

46-
[dependencies.awkernel_async_lib_verified]
47-
path = "../awkernel_async_lib_verified"
48-
4946
[dependencies.bootloader_api]
5047
version = "0.11"
5148
optional = true

‎awkernel_drivers/src/ic/genet.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use awkernel_async_lib_verified::ringq::RingQ;
21
use awkernel_lib::{
32
addr::{virt_addr::VirtAddr, Addr},
43
dma_pool::DMAPool,
@@ -12,6 +11,7 @@ use awkernel_lib::{
1211
},
1312
paging::PAGESIZE,
1413
sync::{mcs::MCSNode, mutex::Mutex, rwlock::RwLock},
14+
verified::ringq::RingQ,
1515
};
1616

1717
use alloc::{boxed::Box, sync::Arc, vec::Vec};

0 commit comments

Comments
 (0)