File tree 7 files changed +26
-19
lines changed
7 files changed +26
-19
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ rustc-hash = "2.1"
76
76
thiserror = " 1.0"
77
77
tiny-keccak = " 2.0"
78
78
tower = " 0.5"
79
- url = " 2.5"
79
+ url = " >= 2.5.3 "
80
80
81
81
# binary dependencies
82
82
anyhow = " 1.0"
@@ -109,6 +109,7 @@ sbv-kv = { path = "crates/kv" }
109
109
sbv-primitives = { path = " crates/primitives" }
110
110
sbv-trie = { path = " crates/trie" }
111
111
sbv-helpers = { path = " crates/helpers" }
112
+ sbv-utils = { path = " crates/utils" }
112
113
113
114
[workspace .dependencies .revm ]
114
115
git = " https://github.com/scroll-tech/revm"
Original file line number Diff line number Diff line change @@ -28,4 +28,4 @@ url.workspace = true
28
28
sbv.workspace = true
29
29
30
30
[features ]
31
- scroll = []
31
+ scroll = [" sbv/scroll " ]
Original file line number Diff line number Diff line change 1
1
use clap:: Subcommand ;
2
2
3
- mod witness;
3
+ pub mod witness;
4
4
5
- #[ derive( Subcommand ) ]
5
+ #[ derive( Debug , Subcommand ) ]
6
6
pub enum Commands {
7
7
#[ command( subcommand, about = "Witness commands" ) ]
8
8
Witness ( witness:: WitnessCommands ) ,
Original file line number Diff line number Diff line change @@ -19,52 +19,52 @@ use sbv::primitives::{
19
19
use std:: { path:: PathBuf , time:: Instant } ;
20
20
use url:: Url ;
21
21
22
- #[ derive( Args ) ]
22
+ #[ derive( Debug , Args ) ]
23
23
pub struct DumpWitnessCommand {
24
24
#[ arg(
25
25
long,
26
26
help = "URL to the RPC server" ,
27
27
default_value = "http://localhost:8545"
28
28
) ]
29
- rpc : Url ,
29
+ pub rpc : Url ,
30
30
#[ arg( long, help = "Block number" ) ]
31
- block : u64 ,
31
+ pub block : u64 ,
32
32
#[ arg( long, help = "Ancestor blocks" , default_value_t = 256 ) ]
33
- ancestors : u64 ,
33
+ pub ancestors : u64 ,
34
34
#[ arg( long, help = "Output directory" , default_value_os_t = std:: env:: current_dir( ) . unwrap( ) ) ]
35
- out_dir : PathBuf ,
35
+ pub out_dir : PathBuf ,
36
36
#[ arg( long, help = "Output json" ) ]
37
- json : bool ,
37
+ pub json : bool ,
38
38
#[ arg( long, help = "Output rkyv" ) ]
39
- rkyv : bool ,
39
+ pub rkyv : bool ,
40
40
41
41
// Concurrency Limit
42
42
#[ arg(
43
43
long,
44
44
help = "Concurrency Limit: maximum number of concurrent requests" ,
45
45
default_value = "10"
46
46
) ]
47
- max_concurrency : usize ,
47
+ pub max_concurrency : usize ,
48
48
49
49
// Retry parameters
50
50
#[ arg(
51
51
long,
52
52
help = "Retry Backoff: maximum number of retries" ,
53
53
default_value = "10"
54
54
) ]
55
- max_retry : u32 ,
55
+ pub max_retry : u32 ,
56
56
#[ arg(
57
57
long,
58
58
help = "Retry Backoff: backoff duration in milliseconds" ,
59
59
default_value = "100"
60
60
) ]
61
- backoff : u64 ,
61
+ pub backoff : u64 ,
62
62
#[ arg(
63
63
long,
64
64
help = "Retry Backoff: compute units per second" ,
65
65
default_value = "100"
66
66
) ]
67
- cups : u64 ,
67
+ pub cups : u64 ,
68
68
}
69
69
70
70
impl DumpWitnessCommand {
Original file line number Diff line number Diff line change 1
1
use clap:: Subcommand ;
2
2
3
- mod dump;
4
- mod rkyv_convert;
3
+ pub mod dump;
4
+ pub mod rkyv_convert;
5
5
6
- #[ derive( Subcommand ) ]
6
+ #[ derive( Debug , Subcommand ) ]
7
7
pub enum WitnessCommands {
8
8
#[ command( about = "Dump a witness from reth RPC" ) ]
9
9
Dump ( dump:: DumpWitnessCommand ) ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use rkyv::{rancor, vec::ArchivedVec};
3
3
use sbv:: primitives:: types:: { ArchivedBlockWitness , BlockWitness } ;
4
4
use std:: path:: PathBuf ;
5
5
6
- #[ derive( Args ) ]
6
+ #[ derive( Debug , Args ) ]
7
7
pub struct RkyvConvertCommand {
8
8
/// Path to the witness json file
9
9
witnesses : Vec < PathBuf > ,
Original file line number Diff line number Diff line change
1
+ //! This crate allows programmatical access to CLI commands
2
+
3
+ #[ doc( hidden) ]
4
+ pub mod commands;
5
+ #[ doc( hidden) ]
6
+ pub mod helpers;
You can’t perform that action at this time.
0 commit comments