File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050 libxcb1-dev \
5151 libxcb-randr0-dev \
5252 libxcb-xkb-dev \
53- libx11-xcb-dev
53+ libx11-xcb-dev \
54+ libxml2-dev
5455
5556 - name : Build release binary
5657 run : cargo build --release --target x86_64-unknown-linux-gnu
Original file line number Diff line number Diff line change 6666 libxcb1-dev \
6767 libxcb-randr0-dev \
6868 libxcb-xkb-dev \
69- libx11-xcb-dev
69+ libx11-xcb-dev \
70+ libxml2-dev
7071
7172 - name : Cache Cargo registry
7273 uses : actions/cache@v4
@@ -129,7 +130,8 @@ jobs:
129130 libxcb1-dev \
130131 libxcb-randr0-dev \
131132 libxcb-xkb-dev \
132- libx11-xcb-dev
133+ libx11-xcb-dev \
134+ libxml2-dev
133135
134136 - name : Cache Cargo registry
135137 uses : actions/cache@v4
@@ -194,7 +196,8 @@ jobs:
194196 libxcb1-dev \
195197 libxcb-randr0-dev \
196198 libxcb-xkb-dev \
197- libx11-xcb-dev
199+ libx11-xcb-dev \
200+ libxml2-dev
198201
199202 - name : Cache Cargo registry
200203 uses : actions/cache@v4
@@ -261,7 +264,8 @@ jobs:
261264 libxcb1-dev \
262265 libxcb-randr0-dev \
263266 libxcb-xkb-dev \
264- libx11-xcb-dev
267+ libx11-xcb-dev \
268+ libxml2-dev
265269
266270 - name : Cache Cargo registry
267271 uses : actions/cache@v4
Original file line number Diff line number Diff line change 6464 libxcb1-dev \
6565 libxcb-randr0-dev \
6666 libxcb-xkb-dev \
67- libx11-xcb-dev
67+ libx11-xcb-dev \
68+ libxml2-dev
6869
6970 - name : Build release binary
7071 run : cargo build --release --target x86_64-unknown-linux-gnu
Original file line number Diff line number Diff line change @@ -465,6 +465,13 @@ impl Aim {
465465 }
466466
467467 /// Find a byte pattern in data starting from offset
468+ #[ cfg( any(
469+ not( all(
470+ any( target_os = "windows" , target_os = "linux" ) ,
471+ target_arch = "x86_64"
472+ ) ) ,
473+ test
474+ ) ) ]
468475 fn find_pattern ( data : & [ u8 ] , pattern : & [ u8 ] , start : usize ) -> Option < usize > {
469476 if start >= data. len ( ) || pattern. is_empty ( ) {
470477 return None ;
@@ -479,6 +486,13 @@ impl Aim {
479486 }
480487
481488 /// Read a null-terminated string from a byte slice, up to max_len bytes
489+ #[ cfg( any(
490+ not( all(
491+ any( target_os = "windows" , target_os = "linux" ) ,
492+ target_arch = "x86_64"
493+ ) ) ,
494+ test
495+ ) ) ]
482496 fn read_null_terminated_string ( data : & [ u8 ] , max_len : usize ) -> String {
483497 let max = max_len. min ( data. len ( ) ) ;
484498 let end = data[ ..max] . iter ( ) . position ( |& b| b == 0 ) . unwrap_or ( max) ;
You can’t perform that action at this time.
0 commit comments