@@ -15,7 +15,7 @@ pub mod vfs {
1515 #[ cfg( esp_idf_soc_usb_serial_jtag_supported) ]
1616 use crate :: sys:: { esp_vfs_usb_serial_jtag_use_driver, esp_vfs_usb_serial_jtag_use_nonblocking} ;
1717
18- #[ cfg( all ( feature = "experimental" , feature = " alloc") ) ]
18+ #[ cfg( feature = "alloc" ) ]
1919 extern crate alloc;
2020
2121 /// Represents a mounted EventFD pseudo-filesystem.
@@ -48,13 +48,13 @@ pub mod vfs {
4848 }
4949
5050 /// Represents a mounted SPIFFS filesystem.
51- #[ cfg( all ( feature = "experimental" , feature = " alloc") ) ]
51+ #[ cfg( feature = "alloc" ) ]
5252 pub struct MountedSpiffs < T > {
5353 _spiffs : T ,
5454 path : alloc:: ffi:: CString ,
5555 }
5656
57- #[ cfg( all ( feature = "experimental" , feature = " alloc") ) ]
57+ #[ cfg( feature = "alloc" ) ]
5858 impl < T > MountedSpiffs < T > {
5959 /// Mount a SPIFFS filesystem.
6060 ///
@@ -84,23 +84,23 @@ pub mod vfs {
8484 }
8585 }
8686
87- #[ cfg( all ( feature = "experimental" , feature = " alloc") ) ]
87+ #[ cfg( feature = "alloc" ) ]
8888 impl < T > Drop for MountedSpiffs < T > {
8989 fn drop ( & mut self ) {
9090 sys:: esp!( unsafe { sys:: esp_vfs_spiffs_unregister( self . path. as_ptr( ) ) } ) . unwrap ( ) ;
9191 }
9292 }
9393
9494 /// Represents a mounted FAT filesystem.
95- #[ cfg( all ( feature = "experimental" , feature = " alloc") ) ]
95+ #[ cfg( feature = "alloc" ) ]
9696 pub struct MountedFatfs < T > {
9797 _handle : * mut sys:: FATFS ,
9898 _fatfs : T ,
9999 path : alloc:: ffi:: CString ,
100100 drive : u8 ,
101101 }
102102
103- #[ cfg( all ( feature = "experimental" , feature = " alloc") ) ]
103+ #[ cfg( feature = "alloc" ) ]
104104 impl < T > MountedFatfs < T > {
105105 /// Mount a FAT filesystem.
106106 ///
@@ -141,7 +141,7 @@ pub mod vfs {
141141 }
142142 }
143143
144- #[ cfg( all ( feature = "experimental" , feature = " alloc") ) ]
144+ #[ cfg( feature = "alloc" ) ]
145145 impl < T > Drop for MountedFatfs < T > {
146146 fn drop ( & mut self ) {
147147 let drive_path = crate :: fs:: fatfs:: Fatfs :: < ( ) > :: drive_path_from ( self . drive ) ;
@@ -155,21 +155,13 @@ pub mod vfs {
155155 }
156156
157157 /// Represents a mounted Littlefs filesystem.
158- #[ cfg( all(
159- feature = "experimental" ,
160- feature = "alloc" ,
161- esp_idf_comp_joltwallet__littlefs_enabled
162- ) ) ]
158+ #[ cfg( all( feature = "alloc" , esp_idf_comp_joltwallet__littlefs_enabled) ) ]
163159 pub struct MountedLittlefs < T > {
164160 _littlefs : T ,
165161 partition_raw_data : crate :: fs:: littlefs:: PartitionRawData ,
166162 }
167163
168- #[ cfg( all(
169- feature = "experimental" ,
170- feature = "alloc" ,
171- esp_idf_comp_joltwallet__littlefs_enabled
172- ) ) ]
164+ #[ cfg( all( feature = "alloc" , esp_idf_comp_joltwallet__littlefs_enabled) ) ]
173165 impl < T > MountedLittlefs < T > {
174166 /// Mount a Littlefs filesystem.
175167 ///
@@ -256,11 +248,7 @@ pub mod vfs {
256248 }
257249 }
258250
259- #[ cfg( all(
260- feature = "experimental" ,
261- feature = "alloc" ,
262- esp_idf_comp_joltwallet__littlefs_enabled
263- ) ) ]
251+ #[ cfg( all( feature = "alloc" , esp_idf_comp_joltwallet__littlefs_enabled) ) ]
264252 impl < T > Drop for MountedLittlefs < T > {
265253 fn drop ( & mut self ) {
266254 use crate :: fs:: littlefs:: PartitionRawData ;
0 commit comments