We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e31c99 commit a00aee1Copy full SHA for a00aee1
2 files changed
serde/build.rs
@@ -34,6 +34,7 @@ fn main() {
34
// https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.into_boxed_path
35
if minor >= 20 {
36
println!("cargo:rustc-cfg=de_boxed_c_str");
37
+ println!("cargo:rustc-cfg=de_boxed_path");
38
}
39
40
// From<Box<T>> for Rc<T> / Arc<T> stabilized in Rust 1.21:
serde/src/de/impls.rs
@@ -1610,7 +1610,7 @@ impl<'de> Deserialize<'de> for PathBuf {
1610
1611
1612
1613
-#[cfg(all(feature = "std", de_boxed_c_str))]
+#[cfg(all(feature = "std", de_boxed_path))]
1614
forwarded_impl!((), Box<Path>, PathBuf::into_boxed_path);
1615
1616
////////////////////////////////////////////////////////////////////////////////
0 commit comments