File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,12 +71,16 @@ rand = { workspace = true }
7171rattan-core = { path = " rattan-core" , features = [" serde" ] }
7272serde = { workspace = true }
7373serde_json = " 1.0.114"
74+ shadow-rs = { version = " 1.3.0" , default-features = false }
7475tokio = { workspace = true }
7576toml = " 0.9.2"
7677tracing = { workspace = true }
7778tracing-appender = " 0.2.3"
7879tracing-subscriber = { workspace = true }
7980
81+ [build-dependencies ]
82+ shadow-rs = " 1.3.0"
83+
8084# required for cargo flamegraph
8185[profile .release ]
8286debug = true
Original file line number Diff line number Diff line change 1+ use shadow_rs:: ShadowBuilder ;
2+
3+ fn main ( ) {
4+ ShadowBuilder :: builder ( ) . build ( ) . unwrap ( ) ;
5+ }
Original file line number Diff line number Diff line change @@ -24,17 +24,22 @@ use tracing::warn;
2424use tracing_subscriber:: Layer ;
2525use tracing_subscriber:: { layer:: SubscriberExt , util:: SubscriberInitExt } ;
2626
27+ use crate :: build:: CLAP_LONG_VERSION ;
28+ use shadow_rs:: shadow;
29+
2730mod channel;
2831// mod docker;
2932
3033// const CONFIG_PORT_BASE: u16 = 8086;
3134
35+ shadow ! ( build) ;
36+
3237static LEFT_PID : OnceCell < i32 > = OnceCell :: new ( ) ;
3338static RIGHT_PID : OnceCell < i32 > = OnceCell :: new ( ) ;
3439
3540#[ derive( Debug , Parser , Clone ) ]
3641#[ command( rename_all = "kebab-case" ) ]
37- #[ command( version, propagate_version = true ) ]
42+ #[ command( version, propagate_version = true , long_version = CLAP_LONG_VERSION ) ]
3843pub struct Arguments {
3944 // Verbose debug output
4045 // #[arg(short, long)]
You can’t perform that action at this time.
0 commit comments