Skip to content

Commit

Permalink
Allow both native-tls and rustls-tls to be enabled at the same time
Browse files Browse the repository at this point in the history
… primarily for development.
  • Loading branch information
jplatte committed Feb 8, 2024
1 parent 06a18a7 commit 75e8fd8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/matrix-sdk/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ fn main() {
native_tls_set || rustls_tls_set,
"one of the features 'native-tls' or 'rustls-tls' must be enabled",
);
ensure(
!native_tls_set || !rustls_tls_set,
"only one of the features 'native-tls' or 'rustls-tls' can be enabled",
);

let is_wasm = env::var_os("CARGO_CFG_TARGET_ARCH").is_some_and(|arch| arch == "wasm32");
if is_wasm {
Expand Down

0 comments on commit 75e8fd8

Please sign in to comment.