@@ -74,6 +74,7 @@ impl PdfSurface {
7474 }
7575
7676 #[ cfg( all( feature = "pdf" , feature = "v1_16" ) ) ]
77+ #[ cfg_attr( docsrs, doc( cfg( all( feature = "pdf" , feature = "v1_16" ) ) ) ) ]
7778 #[ doc( alias = "cairo_pdf_surface_set_metadata" ) ]
7879 pub fn set_metadata ( & self , metadata : PdfMetadata , value : & str ) -> Result < ( ) , Error > {
7980 let value = CString :: new ( value) . unwrap ( ) ;
@@ -88,6 +89,7 @@ impl PdfSurface {
8889 }
8990
9091 #[ cfg( all( feature = "pdf" , feature = "v1_18" ) ) ]
92+ #[ cfg_attr( docsrs, doc( cfg( all( feature = "pdf" , feature = "v1_18" ) ) ) ) ]
9193 #[ doc( alias = "cairo_pdf_surface_set_custom_metadata" ) ]
9294 pub fn set_custom_metadata ( & self , name : & str , value : & str ) -> Result < ( ) , Error > {
9395 let name = CString :: new ( name) . unwrap ( ) ;
@@ -103,6 +105,7 @@ impl PdfSurface {
103105 }
104106
105107 #[ cfg( all( feature = "pdf" , feature = "v1_16" ) ) ]
108+ #[ cfg_attr( docsrs, doc( cfg( all( feature = "pdf" , feature = "v1_16" ) ) ) ) ]
106109 #[ doc( alias = "cairo_pdf_surface_set_page_label" ) ]
107110 pub fn set_page_label ( & self , label : & str ) -> Result < ( ) , Error > {
108111 let label = CString :: new ( label) . unwrap ( ) ;
@@ -113,6 +116,7 @@ impl PdfSurface {
113116 }
114117
115118 #[ cfg( all( feature = "pdf" , feature = "v1_16" ) ) ]
119+ #[ cfg_attr( docsrs, doc( cfg( all( feature = "pdf" , feature = "v1_16" ) ) ) ) ]
116120 #[ doc( alias = "cairo_pdf_surface_set_thumbnail_size" ) ]
117121 pub fn set_thumbnail_size ( & self , width : i32 , height : i32 ) -> Result < ( ) , Error > {
118122 unsafe {
@@ -126,6 +130,7 @@ impl PdfSurface {
126130 }
127131
128132 #[ cfg( all( feature = "pdf" , feature = "v1_16" ) ) ]
133+ #[ cfg_attr( docsrs, doc( cfg( all( feature = "pdf" , feature = "v1_16" ) ) ) ) ]
129134 #[ doc( alias = "cairo_pdf_surface_add_outline" ) ]
130135 pub fn add_outline (
131136 & self ,
0 commit comments