Skip to content

Commit

Permalink
meta: Add favicon to rustdoc and downgrade missing_docs warning (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Aug 19, 2020
1 parent 37c3bdf commit 0d9d1d0
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 13 deletions.
3 changes: 2 additions & 1 deletion sentry-actix/src/lib.rs
Expand Up @@ -63,8 +63,9 @@
//! # }
//! ```

#![doc(html_favicon_url = "https://sentry-brand.storage.googleapis.com/favicon.ico")]
#![doc(html_logo_url = "https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png")]
#![deny(missing_docs)]
#![warn(missing_docs)]
#![allow(clippy::needless_doctest_main)]

use std::borrow::Cow;
Expand Down
3 changes: 2 additions & 1 deletion sentry-anyhow/src/lib.rs
Expand Up @@ -16,8 +16,9 @@
//! # Ok(()) }
//! ```

#![doc(html_favicon_url = "https://sentry-brand.storage.googleapis.com/favicon.ico")]
#![doc(html_logo_url = "https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png")]
#![deny(missing_docs)]
#![warn(missing_docs)]
#![deny(unsafe_code)]

use std::error::Error;
Expand Down
3 changes: 2 additions & 1 deletion sentry-backtrace/src/lib.rs
Expand Up @@ -3,8 +3,9 @@
//! Exposes functions to capture, process and convert/parse stacktraces, as well
//! as integrations to process event stacktraces.

#![doc(html_favicon_url = "https://sentry-brand.storage.googleapis.com/favicon.ico")]
#![doc(html_logo_url = "https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png")]
#![deny(missing_docs)]
#![warn(missing_docs)]

mod integration;
mod parse;
Expand Down
3 changes: 2 additions & 1 deletion sentry-contexts/src/lib.rs
Expand Up @@ -18,8 +18,9 @@
//!
//! [Contexts Interface]: https://develop.sentry.dev/sdk/event-payloads/contexts/

#![doc(html_favicon_url = "https://sentry-brand.storage.googleapis.com/favicon.ico")]
#![doc(html_logo_url = "https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png")]
#![deny(missing_docs)]
#![warn(missing_docs)]

mod integration;
mod utils;
Expand Down
4 changes: 3 additions & 1 deletion sentry-core/src/lib.rs
Expand Up @@ -43,9 +43,11 @@
//! [`Integration`]: trait.Integration.html
//! [`Transport`]: trait.Transport.html
//! [`TransportFactory`]: trait.TransportFactory.html
//! [`test`]: test/index.html

#![doc(html_favicon_url = "https://sentry-brand.storage.googleapis.com/favicon.ico")]
#![doc(html_logo_url = "https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png")]
#![deny(missing_docs)]
#![warn(missing_docs)]

// macros; these need to be first to be used by other modules
#[macro_use]
Expand Down
3 changes: 2 additions & 1 deletion sentry-debug-images/src/lib.rs
Expand Up @@ -16,8 +16,9 @@
//! };
//! ```

#![doc(html_favicon_url = "https://sentry-brand.storage.googleapis.com/favicon.ico")]
#![doc(html_logo_url = "https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png")]
#![deny(missing_docs)]
#![warn(missing_docs)]
#![deny(unsafe_code)]

#[cfg(unix)]
Expand Down
3 changes: 2 additions & 1 deletion sentry-error-chain/src/lib.rs
Expand Up @@ -23,8 +23,9 @@
//! # Ok(()) }
//! ```

#![doc(html_favicon_url = "https://sentry-brand.storage.googleapis.com/favicon.ico")]
#![doc(html_logo_url = "https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png")]
#![deny(missing_docs)]
#![warn(missing_docs)]
#![deny(unsafe_code)]

use std::fmt::{Debug, Display};
Expand Down
3 changes: 2 additions & 1 deletion sentry-failure/src/lib.rs
Expand Up @@ -24,8 +24,9 @@
//!
//! To capture fails and not errors use `capture_fail`.

#![doc(html_favicon_url = "https://sentry-brand.storage.googleapis.com/favicon.ico")]
#![doc(html_logo_url = "https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png")]
#![deny(missing_docs)]
#![warn(missing_docs)]
#![deny(unsafe_code)]
#![warn(missing_doc_code_examples)]

Expand Down
3 changes: 2 additions & 1 deletion sentry-log/src/lib.rs
Expand Up @@ -26,8 +26,9 @@
//! log::error!("Generates an event");
//! ```

#![doc(html_favicon_url = "https://sentry-brand.storage.googleapis.com/favicon.ico")]
#![doc(html_logo_url = "https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png")]
#![deny(missing_docs)]
#![warn(missing_docs)]

mod converters;
mod integration;
Expand Down
3 changes: 2 additions & 1 deletion sentry-panic/src/lib.rs
Expand Up @@ -14,8 +14,9 @@
//! let integration = sentry_panic::PanicIntegration::default().add_extractor(|info| None);
//! ```

#![doc(html_favicon_url = "https://sentry-brand.storage.googleapis.com/favicon.ico")]
#![doc(html_logo_url = "https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png")]
#![deny(missing_docs)]
#![warn(missing_docs)]
#![deny(unsafe_code)]
#![warn(missing_doc_code_examples)]

Expand Down
3 changes: 2 additions & 1 deletion sentry-slog/src/lib.rs
Expand Up @@ -64,8 +64,9 @@
//! [`SlogIntegration`]: struct.SlogIntegration.html
//! [`SentryDrain`]: struct.SentryDrain.html

#![doc(html_favicon_url = "https://sentry-brand.storage.googleapis.com/favicon.ico")]
#![doc(html_logo_url = "https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png")]
#![deny(missing_docs)]
#![warn(missing_docs)]
#![deny(unsafe_code)]

mod converters;
Expand Down
3 changes: 2 additions & 1 deletion sentry-types/src/lib.rs
Expand Up @@ -32,8 +32,9 @@
//! };
//! ```

#![doc(html_favicon_url = "https://sentry-brand.storage.googleapis.com/favicon.ico")]
#![doc(html_logo_url = "https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png")]
#![deny(missing_docs)]
#![warn(missing_docs)]

#[macro_use]
mod macros;
Expand Down
3 changes: 2 additions & 1 deletion sentry/src/lib.rs
Expand Up @@ -72,8 +72,9 @@
//! Please note that `native-tls` is a default feature, and one needs to use
//! `default-features = false` to completely disable building `native-tls` dependencies.

#![doc(html_favicon_url = "https://sentry-brand.storage.googleapis.com/favicon.ico")]
#![doc(html_logo_url = "https://sentry-brand.storage.googleapis.com/sentry-glyph-black.png")]
#![deny(missing_docs)]
#![warn(missing_docs)]

mod defaults;
mod init;
Expand Down

0 comments on commit 0d9d1d0

Please sign in to comment.