File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ $ cargo add http-client
53
53
54
54
## Safety
55
55
56
- This crate uses `` #![deny(unsafe_code)] `` to ensure everything is implemented in
56
+ For non-wasm clients, this crate uses `` #![deny(unsafe_code)] `` to ensure everything is implemented in
57
57
100% Safe Rust.
58
58
59
59
## Contributing
Original file line number Diff line number Diff line change 4
4
//! The purpose of this crate is to provide a unified interface for multiple HTTP client backends,
5
5
//! so that they can be abstracted over without doing extra work.
6
6
7
- #![ forbid( unsafe_code , future_incompatible, rust_2018_idioms) ]
7
+ #![ forbid( future_incompatible, rust_2018_idioms) ]
8
8
#![ deny( missing_debug_implementations, nonstandard_style) ]
9
9
#![ warn( missing_docs, missing_doc_code_examples, unreachable_pub) ]
10
10
#![ cfg_attr( feature = "docs" , feature( doc_cfg) ) ]
11
+ // Forbid `unsafe` for the native & curl features, but allow it (for now) under the WASM backend
12
+ #![ cfg_attr(
13
+ not( all( feature = "wasm_client" , target_arch = "wasm32" ) ) ,
14
+ forbid( unsafe_code)
15
+ ) ]
11
16
12
17
use futures:: future:: BoxFuture ;
13
18
use futures:: io:: { AsyncRead , Cursor } ;
You can’t perform that action at this time.
0 commit comments