@@ -6,7 +6,7 @@ blob_type!(InputErrorBlob, InputError);
66blob_type ! ( DecoderResultBlob , DecoderResult ) ;
77blob_type ! ( MaybeDecoderBlob , Option <Decoder >) ;
88
9- #[ cfg( feature = "tests" ) ]
9+ #[ cfg( test ) ]
1010#[ no_mangle]
1111pub extern "C" fn lib_ruby_parser__test__make_input_error__unsupported_encoding (
1212 s : StringBlob ,
@@ -15,7 +15,7 @@ pub extern "C" fn lib_ruby_parser__test__make_input_error__unsupported_encoding(
1515 InputErrorBlob :: from ( InputError :: UnsupportedEncoding ( s) )
1616}
1717
18- #[ cfg( feature = "tests" ) ]
18+ #[ cfg( test ) ]
1919#[ no_mangle]
2020pub extern "C" fn lib_ruby_parser__test__make_input_error__decoding_error (
2121 s : StringBlob ,
@@ -28,15 +28,15 @@ pub extern "C" fn LIB_RUBY_PARSER_drop_input_error(input_error: *mut InputError)
2828 unsafe { std:: ptr:: drop_in_place ( input_error) }
2929}
3030
31- #[ cfg( feature = "tests" ) ]
31+ #[ cfg( test ) ]
3232#[ no_mangle]
3333pub extern "C" fn lib_ruby_parser__test__make_decoder_result__ok (
3434 bytes : ByteListBlob ,
3535) -> DecoderResultBlob {
3636 DecoderResultBlob :: from ( DecoderResult :: Ok ( bytes. into ( ) ) )
3737}
3838
39- #[ cfg( feature = "tests" ) ]
39+ #[ cfg( test ) ]
4040#[ no_mangle]
4141pub extern "C" fn lib_ruby_parser__test__make_decoder_result__err (
4242 err : InputErrorBlob ,
@@ -60,7 +60,7 @@ pub struct Decoder {
6060 pub state : * const std:: ffi:: c_void ,
6161}
6262
63- #[ cfg( feature = "tests" ) ]
63+ #[ cfg( test ) ]
6464#[ no_mangle]
6565pub extern "C" fn lib_ruby_parser__test__always_ok_decoder ( output : * const u8 ) -> Decoder {
6666 #[ no_mangle]
@@ -84,7 +84,7 @@ pub extern "C" fn lib_ruby_parser__test__always_ok_decoder(output: *const u8) ->
8484 }
8585}
8686
87- #[ cfg( feature = "tests" ) ]
87+ #[ cfg( test ) ]
8888#[ no_mangle]
8989pub extern "C" fn lib_ruby_parser__test__always_err_decoder ( output : * const u8 ) -> Decoder {
9090 #[ no_mangle]
@@ -110,15 +110,15 @@ pub extern "C" fn lib_ruby_parser__test__always_err_decoder(output: *const u8) -
110110 }
111111}
112112
113- #[ cfg( feature = "tests" ) ]
113+ #[ cfg( test ) ]
114114#[ no_mangle]
115115pub extern "C" fn lib_ruby_parser__test__some_always_ok_decoder (
116116 output : * mut u8 ,
117117) -> MaybeDecoderBlob {
118118 MaybeDecoderBlob :: from ( Some ( lib_ruby_parser__test__always_ok_decoder ( output) ) )
119119}
120120
121- #[ cfg( feature = "tests" ) ]
121+ #[ cfg( test ) ]
122122#[ no_mangle]
123123pub extern "C" fn lib_ruby_parser__test__none_decoder ( ) -> MaybeDecoderBlob {
124124 MaybeDecoderBlob :: from ( None )
0 commit comments