Skip to content

Commit 60a1053

Browse files
authored
Adjust the documentation of the enum (#202)
1 parent c66a28f commit 60a1053

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

phper-doc/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ phper-build = { workspace = true }
3333
unexpected_cfgs = { level = "warn", check-cfg = [
3434
'cfg(phper_enum_supported)',
3535
] }
36+
37+
[package.metadata.docs.rs]
38+
rustdoc-args = ["--cfg", "docsrs"]
39+
all-features = true

phper-doc/build.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Copyright (c) 2022 PHPER Framework Team
2+
// PHPER is licensed under Mulan PSL v2.
3+
// You can use this software according to the terms and conditions of the Mulan
4+
// PSL v2. You may obtain a copy of Mulan PSL v2 at:
5+
// http://license.coscl.org.cn/MulanPSL2
6+
// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
7+
// KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
8+
// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
9+
// See the Mulan PSL v2 for more details.
10+
11+
fn main() {
12+
phper_build::register_all();
13+
}

phper-doc/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#![warn(rust_2018_idioms, missing_docs)]
1212
#![warn(clippy::dbg_macro, clippy::print_stdout)]
1313
#![doc = include_str!("../README.md")]
14+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
1415

1516
pub use phper;
1617

0 commit comments

Comments
 (0)