mirror of
https://github.com/storytold/wgpu.git
synced 2026-12-01 10:34:57 +01:00
Merge #748
748: Allow intra doc link resolution failures, because they actually succeed when they need to but rust doesnt know r=kvark a=rukai **Description** cargo doc will create a lot of warnings due to the intra doc links pointing to wgpu. The links work fine, but the warnings are no good because they show up when any any crate dependent on wgpu runs cargo doc. **Testing** Ran cargo doc from wgpu-types: * before: warnings from this crate. * after: no warnings from this crate. Ran cargo doc from wgpu: * before: warnings from this crate * after: no warnings from this crate Co-authored-by: Rukai <rubickent@gmail.com>
This commit is contained in:
1 file changed
+6
@@ -2,6 +2,12 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// The intra doc links to the wgpu crate in this crate actually succesfully link to the types in the wgpu crate, when built from the wgpu crate.
|
||||
// However when building from both the wgpu crate or this crate cargo doc will claim all the links cannot be resolved
|
||||
// despite the fact that it works fine when it needs to.
|
||||
// So we just disable those warnings.
|
||||
#![allow(intra_doc_link_resolution_failure)]
|
||||
|
||||
#[cfg(feature = "serde")]
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
|
||||
Reference in new issue
Block a user