소스 검색

Disable the default features on serde. (#1033)

Serde has a `std` default feature, which drags `std` into the dependency
tree if one want to use `url` and `serde` together.
Rilipco 1 년 전
부모
커밋
2ce2e12cf2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      url/Cargo.toml

+ 1 - 1
url/Cargo.toml

@@ -28,7 +28,7 @@ wasm-bindgen-test = "0.3"
 form_urlencoded = { version = "1.2.1", path = "../form_urlencoded", default-features = false, features = ["alloc"] }
 idna = { version = "1.0.3", path = "../idna", default-features = false, features = ["alloc", "compiled_data"] }
 percent-encoding = { version = "2.3.1", path = "../percent_encoding", default-features = false, features = ["alloc"] }
-serde = { version = "1.0", optional = true, features = ["derive"] }
+serde = { version = "1.0", optional = true, features = ["derive"], default-features = false }
 
 [features]
 default = ["std"]