ソースを参照

docs: Add crabby logo

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
Dave Tucker 2 年 前
コミット
713cd4e
2 ファイル変更18 行追加0 行削除
  1. 7 0
      aya/src/lib.rs
  2. 11 0
      bpf/aya-bpf/src/lib.rs

+ 7 - 0
aya/src/lib.rs

@@ -1,3 +1,5 @@
+//! [![](https://aya-rs.dev/assets/images/aya_logo_docs.svg)](https://aya-rs.dev)
+//!
 //! A library to work with eBPF programs.
 //!
 //! eBPF is a technology that allows running user-supplied programs inside the
@@ -29,6 +31,11 @@
 //!
 //! [tokio]: https://docs.rs/tokio
 //! [async-std]: https://docs.rs/async-std
+
+#![doc(
+    html_logo_url = "https://aya-rs.dev/assets/images/crabby.svg",
+    html_favicon_url = "https://aya-rs.dev/assets/images/crabby.svg"
+)]
 #![deny(clippy::all, missing_docs)]
 #![allow(clippy::missing_safety_doc, clippy::len_without_is_empty)]
 

+ 11 - 0
bpf/aya-bpf/src/lib.rs

@@ -1,3 +1,14 @@
+//! [![](https://aya-rs.dev/assets/images/aya_logo_docs.svg)](https://aya-rs.dev)
+//!
+//! A library to write eBPF programs.
+//!
+//! Aya-bpf is an eBPF library built with a focus on operability and developer experience.
+//! It is the kernel-space counterpart of [Aya](https://docs.rs/aya)
+
+#![doc(
+    html_logo_url = "https://aya-rs.dev/assets/images/crabby.svg",
+    html_favicon_url = "https://aya-rs.dev/assets/images/crabby.svg"
+)]
 #![feature(never_type)]
 #![allow(clippy::missing_safety_doc)]
 #![no_std]