File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ use http::header::ACCEPT;
1717use http:: header:: AUTHORIZATION ;
1818use http:: header:: IF_NONE_MATCH ;
1919use http:: header:: LOCATION ;
20- use http:: HeaderValue ;
2120use log:: debug;
2221use sys_traits:: FsFileMetadata ;
2322use sys_traits:: FsMetadataValue ;
@@ -45,6 +44,9 @@ pub use auth_tokens::AuthToken;
4544pub use auth_tokens:: AuthTokenData ;
4645pub use auth_tokens:: AuthTokens ;
4746pub use http:: HeaderMap ;
47+ pub use http:: HeaderName ;
48+ pub use http:: HeaderValue ;
49+ pub use http:: StatusCode ;
4850
4951/// Indicates how cached source files should be handled.
5052#[ derive( Debug , Clone , Eq , PartialEq ) ]
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ pub struct GlobalHttpCache<Sys: GlobalHttpCacheSys> {
6060
6161impl < Sys : GlobalHttpCacheSys > GlobalHttpCache < Sys > {
6262 pub fn new ( sys : Sys , path : PathBuf ) -> Self {
63- #[ cfg( not( feature = "wasm " ) ) ]
63+ #[ cfg( not( target_arch = "wasm32 " ) ) ]
6464 assert ! ( path. is_absolute( ) ) ;
6565 Self { path, sys }
6666 }
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ pub struct LocalLspHttpCache<TSys: LocalHttpCacheSys> {
6868
6969impl < TSys : LocalHttpCacheSys > LocalLspHttpCache < TSys > {
7070 pub fn new ( path : PathBuf , global_cache : GlobalHttpCacheRc < TSys > ) -> Self {
71- #[ cfg( not( feature = "wasm " ) ) ]
71+ #[ cfg( not( target_arch = "wasm32 " ) ) ]
7272 assert ! ( path. is_absolute( ) ) ;
7373 let manifest = LocalCacheManifest :: new_for_lsp (
7474 path. join ( "manifest.json" ) ,
@@ -245,7 +245,7 @@ impl<TSys: LocalHttpCacheSys> LocalHttpCache<TSys> {
245245 allow_global_to_local : GlobalToLocalCopy ,
246246 jsr_registry_url : Url ,
247247 ) -> Self {
248- #[ cfg( not( feature = "wasm " ) ) ]
248+ #[ cfg( not( target_arch = "wasm32 " ) ) ]
249249 assert ! ( path. is_absolute( ) ) ;
250250 let manifest = LocalCacheManifest :: new (
251251 path. join ( "manifest.json" ) ,
You can’t perform that action at this time.
0 commit comments