Skip to content

Commit 682ba1b

Browse files
committed
docs(cli): enforce docs for cli
Refs: #392
1 parent 297781f commit 682ba1b

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

crates/cli/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ dialoguer = "0.11"
1919
libloading = "0.8"
2020
cargo_metadata = "0.15"
2121
semver = "1.0"
22+
23+
[lints.rust]
24+
missing_docs = "warn"

crates/cli/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ macro_rules! stub_symbols {
2626
};
2727
(@INTERNAL; $s: ident) => {
2828
#[allow(non_upper_case_globals)]
29+
#[allow(missing_docs)]
2930
#[no_mangle]
3031
pub static mut $s: *mut () = ::std::ptr::null_mut();
3132
};

crates/cli/src/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
// Mock macro for the `allowed_bindings.rs` script.
1+
//! # `cargo-php` CLI
2+
//!
3+
//! Installs extensions and generates stub files for PHP extensions generated
4+
//! with `ext-php-rs`. Use `cargo php --help` for more information.
5+
6+
/// Mock macro for the `allowed_bindings.rs` script.
27
#[cfg(not(windows))]
38
macro_rules! bind {
49
($($s: ident),*) => {

0 commit comments

Comments
 (0)