Skip to content

Commit

Permalink
Add feature documentation quotes (#2675)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr authored Oct 2, 2023
1 parent be8b967 commit ba72e60
Show file tree
Hide file tree
Showing 1,108 changed files with 78,698 additions and 78,698 deletions.
2 changes: 1 addition & 1 deletion crates/libs/bindgen/src/rust/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ fn namespace(writer: &Writer, tree: &Tree) -> String {
for (name, tree) in &tree.nested {
let name = to_ident(name);
let feature = tree.namespace[tree.namespace.find('.').unwrap() + 1..].replace('.', "_");
let doc = format!("Required features: `{feature}`");
let doc = format!(r#"Required features: `\"{feature}\"`"#);
if writer.package {
tokens.combine(&quote! {
#[cfg(feature = #feature)]
Expand Down
4 changes: 2 additions & 2 deletions crates/libs/bindgen/src/rust/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ impl<'a> Writer<'a> {
let mut tokens = String::new();

for features in self.cfg_features_imp(cfg, self.namespace) {
write!(tokens, r#"`{}`, "#, to_feature(features)).unwrap();
write!(tokens, r#"`\"{}\"`, "#, to_feature(features)).unwrap();
}

if tokens.is_empty() {
Expand All @@ -354,7 +354,7 @@ impl<'a> Writer<'a> {
let mut tokens = String::new();

for features in features {
write!(tokens, r#"`{}`, "#, to_feature(features)).unwrap();
write!(tokens, r#"`\"{}\"`, "#, to_feature(features)).unwrap();
}

tokens.truncate(tokens.len() - 2);
Expand Down
278 changes: 139 additions & 139 deletions crates/libs/sys/src/Windows/Wdk/Foundation/mod.rs

Large diffs are not rendered by default.

1,384 changes: 692 additions & 692 deletions crates/libs/sys/src/Windows/Wdk/Graphics/Direct3D/mod.rs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion crates/libs/sys/src/Windows/Wdk/Graphics/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#[cfg(feature = "Wdk_Graphics_Direct3D")]
#[doc = "Required features: `Wdk_Graphics_Direct3D`"]
#[doc = "Required features: `\"Wdk_Graphics_Direct3D\"`"]
pub mod Direct3D;
666 changes: 333 additions & 333 deletions crates/libs/sys/src/Windows/Wdk/Storage/FileSystem/Minifilters/mod.rs

Large diffs are not rendered by default.

1,420 changes: 710 additions & 710 deletions crates/libs/sys/src/Windows/Wdk/Storage/FileSystem/mod.rs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion crates/libs/sys/src/Windows/Wdk/Storage/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#[cfg(feature = "Wdk_Storage_FileSystem")]
#[doc = "Required features: `Wdk_Storage_FileSystem`"]
#[doc = "Required features: `\"Wdk_Storage_FileSystem\"`"]
pub mod FileSystem;
2 changes: 1 addition & 1 deletion crates/libs/sys/src/Windows/Wdk/System/IO/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
::windows_targets::link!("ntdll.dll" "system" #[doc = "Required features: `Win32_Foundation`, `Win32_System_IO`"] fn NtDeviceIoControlFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const ::core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, iocontrolcode : u32, inputbuffer : *const ::core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut ::core::ffi::c_void, outputbufferlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
::windows_targets::link!("ntdll.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_IO\"`"] fn NtDeviceIoControlFile(filehandle : super::super::super::Win32::Foundation:: HANDLE, event : super::super::super::Win32::Foundation:: HANDLE, apcroutine : super::super::super::Win32::System::IO:: PIO_APC_ROUTINE, apccontext : *const ::core::ffi::c_void, iostatusblock : *mut super::super::super::Win32::System::IO:: IO_STATUS_BLOCK, iocontrolcode : u32, inputbuffer : *const ::core::ffi::c_void, inputbufferlength : u32, outputbuffer : *mut ::core::ffi::c_void, outputbufferlength : u32) -> super::super::super::Win32::Foundation:: NTSTATUS);
48 changes: 24 additions & 24 deletions crates/libs/sys/src/Windows/Wdk/System/OfflineRegistry/mod.rs
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORCloseHive(handle : ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORCloseHive(handle : ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORCloseKey(keyhandle : ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORCloseKey(keyhandle : ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORCreateHive(horkey : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORCreateHive(horkey : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`, `Win32_Security`"] fn ORCreateKey(keyhandle : ORHKEY, lpsubkey : ::windows_sys::core::PCWSTR, lpclass : ::windows_sys::core::PCWSTR, dwoptions : u32, psecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, phkresult : *mut ORHKEY, pdwdisposition : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"] fn ORCreateKey(keyhandle : ORHKEY, lpsubkey : ::windows_sys::core::PCWSTR, lpclass : ::windows_sys::core::PCWSTR, dwoptions : u32, psecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, phkresult : *mut ORHKEY, pdwdisposition : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORDeleteKey(handle : ORHKEY, lpsubkey : ::windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORDeleteKey(handle : ORHKEY, lpsubkey : ::windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORDeleteValue(handle : ORHKEY, lpvaluename : ::windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORDeleteValue(handle : ORHKEY, lpvaluename : ::windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn OREnumKey(handle : ORHKEY, dwindex : u32, lpname : ::windows_sys::core::PWSTR, lpcname : *mut u32, lpclass : ::windows_sys::core::PWSTR, lpcclass : *mut u32, lpftlastwritetime : *mut super::super::super::Win32::Foundation:: FILETIME) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn OREnumKey(handle : ORHKEY, dwindex : u32, lpname : ::windows_sys::core::PWSTR, lpcname : *mut u32, lpclass : ::windows_sys::core::PWSTR, lpcclass : *mut u32, lpftlastwritetime : *mut super::super::super::Win32::Foundation:: FILETIME) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn OREnumValue(handle : ORHKEY, dwindex : u32, lpvaluename : ::windows_sys::core::PWSTR, lpcvaluename : *mut u32, lptype : *mut u32, lpdata : *mut u8, lpcbdata : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn OREnumValue(handle : ORHKEY, dwindex : u32, lpvaluename : ::windows_sys::core::PWSTR, lpcvaluename : *mut u32, lptype : *mut u32, lpdata : *mut u8, lpcbdata : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`, `Win32_Security`"] fn ORGetKeySecurity(handle : ORHKEY, securityinformation : u32, psecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"] fn ORGetKeySecurity(handle : ORHKEY, securityinformation : u32, psecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR, lpcbsecuritydescriptor : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORGetValue(handle : ORHKEY, lpsubkey : ::windows_sys::core::PCWSTR, lpvalue : ::windows_sys::core::PCWSTR, pdwtype : *mut u32, pvdata : *mut ::core::ffi::c_void, pcbdata : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORGetValue(handle : ORHKEY, lpsubkey : ::windows_sys::core::PCWSTR, lpvalue : ::windows_sys::core::PCWSTR, pdwtype : *mut u32, pvdata : *mut ::core::ffi::c_void, pcbdata : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORGetVersion(pdwmajorversion : *mut u32, pdwminorversion : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORGetVersion(pdwmajorversion : *mut u32, pdwminorversion : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORGetVirtualFlags(handle : ORHKEY, pdwflags : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORGetVirtualFlags(handle : ORHKEY, pdwflags : *mut u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORMergeHives(hivehandles : *const ORHKEY, hivecount : u32, phkresult : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORMergeHives(hivehandles : *const ORHKEY, hivecount : u32, phkresult : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn OROpenHive(filepath : ::windows_sys::core::PCWSTR, horkey : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn OROpenHive(filepath : ::windows_sys::core::PCWSTR, horkey : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn OROpenHiveByHandle(filehandle : super::super::super::Win32::Foundation:: HANDLE, horkey : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn OROpenHiveByHandle(filehandle : super::super::super::Win32::Foundation:: HANDLE, horkey : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn OROpenKey(handle : ORHKEY, lpsubkey : ::windows_sys::core::PCWSTR, phkresult : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn OROpenKey(handle : ORHKEY, lpsubkey : ::windows_sys::core::PCWSTR, phkresult : *mut ORHKEY) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORQueryInfoKey(handle : ORHKEY, lpclass : ::windows_sys::core::PWSTR, lpcclass : *mut u32, lpcsubkeys : *mut u32, lpcmaxsubkeylen : *mut u32, lpcmaxclasslen : *mut u32, lpcvalues : *mut u32, lpcmaxvaluenamelen : *mut u32, lpcmaxvaluelen : *mut u32, lpcbsecuritydescriptor : *mut u32, lpftlastwritetime : *mut super::super::super::Win32::Foundation:: FILETIME) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORQueryInfoKey(handle : ORHKEY, lpclass : ::windows_sys::core::PWSTR, lpcclass : *mut u32, lpcsubkeys : *mut u32, lpcmaxsubkeylen : *mut u32, lpcmaxclasslen : *mut u32, lpcvalues : *mut u32, lpcmaxvaluenamelen : *mut u32, lpcmaxvaluelen : *mut u32, lpcbsecuritydescriptor : *mut u32, lpftlastwritetime : *mut super::super::super::Win32::Foundation:: FILETIME) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORRenameKey(handle : ORHKEY, lpnewname : ::windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORRenameKey(handle : ORHKEY, lpnewname : ::windows_sys::core::PCWSTR) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORSaveHive(horkey : ORHKEY, hivepath : ::windows_sys::core::PCWSTR, osmajorversion : u32, osminorversion : u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORSaveHive(horkey : ORHKEY, hivepath : ::windows_sys::core::PCWSTR, osmajorversion : u32, osminorversion : u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`, `Win32_Security`"] fn ORSetKeySecurity(handle : ORHKEY, securityinformation : u32, psecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security\"`"] fn ORSetKeySecurity(handle : ORHKEY, securityinformation : u32, psecuritydescriptor : super::super::super::Win32::Security:: PSECURITY_DESCRIPTOR) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORSetValue(handle : ORHKEY, lpvaluename : ::windows_sys::core::PCWSTR, dwtype : u32, lpdata : *const u8, cbdata : u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORSetValue(handle : ORHKEY, lpvaluename : ::windows_sys::core::PCWSTR, dwtype : u32, lpdata : *const u8, cbdata : u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORSetVirtualFlags(handle : ORHKEY, dwflags : u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORSetVirtualFlags(handle : ORHKEY, dwflags : u32) -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORShutdown() -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORShutdown() -> super::super::super::Win32::Foundation:: WIN32_ERROR);
#[cfg(feature = "Win32_Foundation")]
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `Win32_Foundation`"] fn ORStart() -> super::super::super::Win32::Foundation:: WIN32_ERROR);
::windows_targets::link!("offreg.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ORStart() -> super::super::super::Win32::Foundation:: WIN32_ERROR);
pub type ORHKEY = isize;
Loading

0 comments on commit ba72e60

Please sign in to comment.