Rollup merge of #66472 - GuillaumeGomez:show-coverage-json, r=ollie27
--show-coverage json The purpose of this change is to be able to use it as a tool in docs.rs in order to provide some more stats to crates' owners. Eventually even create a badge or something along the line. r? @QuietMisdreavus
This commit is contained in:
commit
741d4ff713
10 changed files with 137 additions and 25 deletions
|
@ -60,7 +60,7 @@ use serde::ser::SerializeSeq;
|
|||
use serde::{Serialize, Serializer};
|
||||
|
||||
use crate::clean::{self, AttributesExt, Deprecation, GetDefId, SelfTy};
|
||||
use crate::config::RenderOptions;
|
||||
use crate::config::{OutputFormat, RenderOptions};
|
||||
use crate::docfs::{DocFS, ErrorStorage, PathError};
|
||||
use crate::doctree;
|
||||
use crate::html::escape::Escape;
|
||||
|
@ -270,6 +270,7 @@ pub struct RenderInfo {
|
|||
pub deref_trait_did: Option<DefId>,
|
||||
pub deref_mut_trait_did: Option<DefId>,
|
||||
pub owned_box_did: Option<DefId>,
|
||||
pub output_format: Option<OutputFormat>,
|
||||
}
|
||||
|
||||
// Helper structs for rendering items/sidebars and carrying along contextual
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue