File tree 3 files changed +34
-12
lines changed
3 files changed +34
-12
lines changed Original file line number Diff line number Diff line change 91
91
- os : macos-latest
92
92
platform : darwin
93
93
target : x86_64-apple-darwin
94
- - os : ubuntu-latest
95
- platform : linux
96
- target : aarch64-unknown-linux-musl
94
+ # - os: ubuntu-latest
95
+ # platform: linux
96
+ # target: aarch64-unknown-linux-musl
97
97
- os : macos-latest
98
98
platform : darwin
99
99
target : aarch64-apple-darwin
Original file line number Diff line number Diff line change
1
+ #![ allow( dead_code) ]
2
+ #![ allow( unused_imports) ]
3
+
4
+ use std:: sync:: { Arc , Mutex } ;
5
+
6
+ use crate :: vm:: vm_server:: Vm ;
7
+
8
+ #[ derive( Debug ) ]
9
+ pub struct Handler {
10
+ db : Db ,
11
+ }
12
+
13
+ #[ derive( Debug , Clone ) ]
14
+ struct Db {
15
+ shared : Arc < Shared > ,
16
+ }
17
+
18
+ #[ derive( Debug ) ]
19
+ struct Shared {
20
+ state : Mutex < State > ,
21
+ }
22
+
23
+ #[ derive( Debug ) ]
24
+ struct State {
25
+ bootstrapped : bool ,
26
+ }
27
+
28
+ // impl Vm for Handler {
29
+ // TODO
30
+ // }
Original file line number Diff line number Diff line change 1
1
pub mod genesis;
2
+ pub mod kvvm;
2
3
pub mod plugin;
3
4
4
5
pub mod vm {
5
6
tonic:: include_proto!( "vm" ) ;
6
7
}
7
- #[ allow( unused_imports) ]
8
- use vm:: vm_server:: Vm ;
9
8
10
9
pub mod metrics {
11
10
tonic:: include_proto!( "metrics" ) ;
12
11
}
13
-
14
- #[ derive( Debug ) ]
15
- pub struct KvVm { }
16
-
17
- // impl Vm for KvVm {
18
- // TODO
19
- // }
You can’t perform that action at this time.
0 commit comments