File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 - 0.10.1
1919 - 0.11.0
2020 - 0.12.3
21- - 0.13.1
2221 runs-on : ubuntu-24.04
2322 env :
2423 LIBSTROPHE_VERSION : ${{ matrix.libstrophe-version }}
Original file line number Diff line number Diff line change @@ -33,11 +33,10 @@ names = "0.14"
3333trybuild = " 1"
3434
3535[features ]
36- default = [" rust-log" , " libstrophe-0_13 " ]
36+ default = [" rust-log" , " libstrophe-0_12_0 " ]
3737buildtime_bindgen = [" sys/buildtime_bindgen" ]
3838libstrophe-0_9_3 = []
3939libstrophe-0_10_0 = [" libstrophe-0_9_3" ]
4040libstrophe-0_11_0 = [" libstrophe-0_10_0" ]
4141libstrophe-0_12_0 = [" libstrophe-0_11_0" ]
42- libstrophe-0_13 = [" libstrophe-0_12_0" ]
4342rust-log = [" log" ]
Original file line number Diff line number Diff line change @@ -25,13 +25,7 @@ if verlte "0.11.0" "$LIBSTROPHE_VERSION"; then
2525 cargo test -v $ARGS --release -- --test-threads=1
2626fi
2727
28- if verlte " 0.12.1" " $LIBSTROPHE_VERSION " ; then
29- ARGS=" --no-default-features --features=buildtime_bindgen,libstrophe-0_12_0"
30- cargo test -v $ARGS -- --test-threads=1
31- cargo test -v $ARGS --release -- --test-threads=1
32- fi
33-
34- if verlte " 0.13.0" " $LIBSTROPHE_VERSION " ; then
28+ if verlte " 0.12.0" " $LIBSTROPHE_VERSION " ; then
3529 cargo test -v -- --test-threads=1
3630 cargo test -v --release -- --test-threads=1
3731 cargo test -v --features=buildtime_bindgen -- --test-threads=1
Original file line number Diff line number Diff line change @@ -448,11 +448,7 @@ fn zero_sized_handlers() {
448448 . unwrap ( ) ;
449449 ctx. run ( ) ;
450450 }
451- if cfg ! ( feature = "libstrophe-0_13" ) {
452- assert_eq ! ( i. load( Ordering :: Relaxed ) , 0 ) ;
453- } else {
454- assert_eq ! ( i. load( Ordering :: Relaxed ) , 1 ) ;
455- }
451+ assert_eq ! ( i. load( Ordering :: Relaxed ) , 1 ) ;
456452
457453 // non zero sized handlers are called
458454 i. store ( 0 , Ordering :: Relaxed ) ;
@@ -941,11 +937,7 @@ fn handler() {
941937 . expect ( "Can't add handler" ) ;
942938 let ctx = conn. connect_client ( None , None , default_con_handler) . unwrap ( ) ;
943939 ctx. run ( ) ;
944- if cfg ! ( feature = "libstrophe-0_13" ) {
945- assert_eq ! ( i. load( Ordering :: Relaxed ) , 0 ) ;
946- } else {
947- assert_eq ! ( i. load( Ordering :: Relaxed ) , 1 ) ;
948- }
940+ assert_eq ! ( i. load( Ordering :: Relaxed ) , 1 ) ;
949941 }
950942
951943 // handler call stanza name not existent
You can’t perform that action at this time.
0 commit comments