11#![ cfg_attr( not( feature = "std" ) , no_std) ]
2- #![ cfg_attr( docsrs, feature( doc_auto_cfg ) ) ]
2+ #![ cfg_attr( docsrs, feature( doc_cfg ) ) ]
33
44extern crate alloc;
55
@@ -333,6 +333,7 @@ impl AsRef<[u8]> for SmolStr {
333333}
334334
335335#[ cfg( feature = "std" ) ]
336+ #[ cfg_attr( docsrs, doc( cfg( feature = "std" ) ) ) ]
336337impl AsRef < std:: ffi:: OsStr > for SmolStr {
337338 #[ inline( always) ]
338339 fn as_ref ( & self ) -> & std:: ffi:: OsStr {
@@ -341,6 +342,7 @@ impl AsRef<std::ffi::OsStr> for SmolStr {
341342}
342343
343344#[ cfg( feature = "std" ) ]
345+ #[ cfg_attr( docsrs, doc( cfg( feature = "std" ) ) ) ]
344346impl AsRef < std:: path:: Path > for SmolStr {
345347 #[ inline( always) ]
346348 fn as_ref ( & self ) -> & std:: path:: Path {
@@ -941,6 +943,7 @@ impl From<SmolStrBuilder> for SmolStr {
941943}
942944
943945#[ cfg( feature = "arbitrary" ) ]
946+ #[ cfg_attr( docsrs, doc( cfg( feature = "arbitrary" ) ) ) ]
944947impl < ' a > arbitrary:: Arbitrary < ' a > for SmolStr {
945948 fn arbitrary ( u : & mut arbitrary:: Unstructured < ' a > ) -> Result < Self , arbitrary:: Error > {
946949 let s = <& str >:: arbitrary ( u) ?;
@@ -949,8 +952,10 @@ impl<'a> arbitrary::Arbitrary<'a> for SmolStr {
949952}
950953
951954#[ cfg( feature = "borsh" ) ]
955+ #[ cfg_attr( docsrs, doc( cfg( feature = "borsh" ) ) ) ]
952956mod borsh;
953957#[ cfg( feature = "serde" ) ]
958+ #[ cfg_attr( docsrs, doc( cfg( feature = "serde" ) ) ) ]
954959mod serde;
955960
956961#[ test]
0 commit comments