Skip to content

Commit

Permalink
fix(lint): rename cfg from docs to doc and enable nightly for embed t…
Browse files Browse the repository at this point in the history
…ests

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
  • Loading branch information
jdrouet authored and davidcole1340 committed Oct 20, 2024
1 parent 75ed264 commit f965ea4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/embed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ ENV RUSTUP_HOME=/rust
ENV CARGO_HOME=/cargo
ENV PATH=/cargo/bin:/rust/bin:$PATH

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
RUN (curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly --no-modify-path) && rustup default nightly

ENTRYPOINT [ "/cargo/bin/cargo", "test", "--all", "--release", "--all-features", "--no-fail-fast" ]
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ fn check_php_version(info: &PHPInfo) -> Result<()> {

const PHP_83_API_VER: u32 = 20230831;

println!("cargo::rustc-check-cfg=cfg(php80, php81, php82, php83, php_zts, php_debug, docs)");
println!("cargo::rustc-check-cfg=cfg(php80, php81, php82, php83, php_zts, php_debug)");
println!("cargo:rustc-cfg=php80");

if (PHP_81_API_VER..PHP_82_API_VER).contains(&version) {
Expand Down
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![cfg_attr(docs, feature(doc_cfg))]
#![cfg_attr(doc, feature(doc_cfg))]
#![cfg_attr(windows, feature(abi_vectorcall))]

pub mod alloc;
Expand All @@ -20,8 +20,8 @@ pub mod flags;
pub mod macros;
pub mod boxed;
pub mod class;
#[cfg(any(docs, feature = "closure"))]
#[cfg_attr(docs, doc(cfg(feature = "closure")))]
#[cfg(any(doc, feature = "closure"))]
#[cfg_attr(doc, doc(cfg(feature = "closure")))]
pub mod closure;
pub mod constant;
pub mod describe;
Expand All @@ -39,8 +39,8 @@ pub mod zend;
pub mod prelude {

pub use crate::builders::ModuleBuilder;
#[cfg(any(docs, feature = "closure"))]
#[cfg_attr(docs, doc(cfg(feature = "closure")))]
#[cfg(any(doc, feature = "closure"))]
#[cfg_attr(doc, doc(cfg(feature = "closure")))]
pub use crate::closure::Closure;
pub use crate::exception::{PhpException, PhpResult};
pub use crate::php_class;
Expand Down

0 comments on commit f965ea4

Please sign in to comment.