From 0f781e586e88e57ecd9f27728ae751716962a761 Mon Sep 17 00:00:00 2001 From: Magic Len Date: Sun, 26 Nov 2023 16:13:41 +0800 Subject: [PATCH] improve doc --- Cargo.toml | 6 +++++- src/lib.rs | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 3d047c7..5500c13 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "boyer-moore-magiclen" -version = "0.2.18" +version = "0.2.19" authors = ["Magic Len "] edition = "2021" rust-version = "1.61" @@ -31,3 +31,7 @@ harness = false [[bench]] name = "normal_text_search" harness = false + +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 8a65d5b..78d21a6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -61,6 +61,7 @@ assert_eq!(vec![7, 4, 1], bmb.rfind_full_all_in("coocoocoocoo")); */ #![cfg_attr(not(feature = "character"), no_std)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] #[macro_use] extern crate alloc;