From 16016a16b80a5224dba4b9f86a997aa45362e123 Mon Sep 17 00:00:00 2001 From: Pierre Tondereau Date: Tue, 20 Dec 2022 17:16:44 +0100 Subject: [PATCH 1/2] Bump to 0.10.0. --- Cargo.toml | 4 ++-- crates/macros/Cargo.toml | 2 +- crates/macros/src/impl_.rs | 9 ++++----- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 874409301f..9892ec5924 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ repository = "https://github.com/davidcole1340/ext-php-rs" homepage = "https://github.com/davidcole1340/ext-php-rs" license = "MIT OR Apache-2.0" keywords = ["php", "ffi", "zend"] -version = "0.9.0" +version = "0.10.0" authors = ["David Cole "] edition = "2018" categories = ["api-bindings"] @@ -17,7 +17,7 @@ parking_lot = "0.12.1" cfg-if = "1.0" once_cell = "1.8.0" anyhow = { version = "1", optional = true } -ext-php-rs-derive = { version = "=0.9.0", path = "./crates/macros" } +ext-php-rs-derive = { version = "=0.10.0", path = "./crates/macros" } [dev-dependencies] skeptic = "0.13" diff --git a/crates/macros/Cargo.toml b/crates/macros/Cargo.toml index dadcb83dec..44d89bda94 100644 --- a/crates/macros/Cargo.toml +++ b/crates/macros/Cargo.toml @@ -4,7 +4,7 @@ description = "Derive macros for ext-php-rs." repository = "https://github.com/davidcole1340/ext-php-rs" homepage = "https://github.com/davidcole1340/ext-php-rs" license = "MIT OR Apache-2.0" -version = "0.9.0" +version = "0.10.0" authors = ["David Cole "] edition = "2018" diff --git a/crates/macros/src/impl_.rs b/crates/macros/src/impl_.rs index ca7851baea..d26f60ee00 100644 --- a/crates/macros/src/impl_.rs +++ b/crates/macros/src/impl_.rs @@ -295,10 +295,9 @@ mod tests { #[test] fn test_rename_php_methods() { - for &(original, camel, snake) in &[("get_name", "getName", "get_name")] { - assert_eq!(original, RenameRule::None.rename(original)); - assert_eq!(camel, RenameRule::Camel.rename(original)); - assert_eq!(snake, RenameRule::Snake.rename(original)); - } + let &(original, camel, snake) = &("get_name", "getName", "get_name"); + assert_eq!(original, RenameRule::None.rename(original)); + assert_eq!(camel, RenameRule::Camel.rename(original)); + assert_eq!(snake, RenameRule::Snake.rename(original)); } } From 9150a34b5e994c21e2c436cc8b3a377b3a32e62f Mon Sep 17 00:00:00 2001 From: Pierre Tondereau Date: Tue, 20 Dec 2022 17:19:27 +0100 Subject: [PATCH 2/2] Update changelog. --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37c0a3ce47..cf90d706a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.10.0 +- feat: Add PHP 8.2 support by @ptondereau [#212] + +[#212]: https://github.com/davidcole1340/ext-php-rs/pull/212 + ## Version 0.9.0 - ci+docs: honour PHP_CONFIG & rebuild automatically when env vars change by @julius [#210]