File tree 2 files changed +23
-0
lines changed
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 54
54
if : matrix.bench != ''
55
55
run : cargo test -v --benches
56
56
57
+ nostd :
58
+ runs-on : ubuntu-latest
59
+ continue-on-error : false
60
+ strategy :
61
+ matrix :
62
+ include :
63
+ - rust : stable
64
+ target : thumbv6m-none-eabi
65
+
66
+ name : nostd/${{ matrix.target }}/${{ matrix.rust }}
67
+ steps :
68
+ - uses : actions/checkout@v4
69
+ - uses : dtolnay/rust-toolchain@stable
70
+ with :
71
+ toolchain : ${{ matrix.rust }}
72
+ targets : ${{ matrix.target }}
73
+ - name : Tests
74
+ run : |
75
+ cargo rustc "--target=${{ matrix.target }}" --no-default-features
76
+
77
+
57
78
miri :
58
79
runs-on : ubuntu-latest
59
80
steps :
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ use std::fmt;
5
5
use std:: hash:: { Hash , Hasher } ;
6
6
use std:: mem:: MaybeUninit ;
7
7
use std:: ops:: { Deref , DerefMut } ;
8
+ #[ cfg( feature="std" ) ]
8
9
use std:: path:: Path ;
9
10
use std:: ptr;
10
11
use std:: slice;
@@ -502,6 +503,7 @@ impl<const CAP: usize> fmt::Debug for ArrayString<CAP>
502
503
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result { ( * * self ) . fmt ( f) }
503
504
}
504
505
506
+ #[ cfg( feature="std" ) ]
505
507
impl < const CAP : usize > AsRef < Path > for ArrayString < CAP > {
506
508
fn as_ref ( & self ) -> & Path {
507
509
self . as_str ( ) . as_ref ( )
You can’t perform that action at this time.
0 commit comments