Skip to content

ext-php-rs-derive-v0.11.0

Compare
Choose a tag to compare
@davidcole1340 davidcole1340 released this 04 Jul 17:17
· 42 commits to master since this release
0ce066d

BREAKING CHANGES

  • (macro) [breaking] Change rename defaults to match psr (by @Xenira) [#189] [#436]

Methods and Properties are renamed to camelCase by default. Classes to PascalCase, constants to UPPER_CASE and functions to snake_case

  • (class) [breaking] Generate correct stubs for extends and implements (by @Xenira) [#326]

extends and implements attributes now require the stub property containing the class/interface name to be used in stubs.

  • (macro) [breaking] Uinify attributes in #[php] attribute (by @Xenira) [#391]

Attributes like #[prop], #[rename], etc. have been moved to #[php] attributes like #[php(prop)], #[php(name = "Foo")], #[php(change_case = CamelCase)], etc.

The old macros were dependent on execution order and have been causing trouble with language servers. They are replaced by a builder. See the migration guide at https://davidcole1340.github.io/ext-php-rs/migration-guides/v0.14.html for information on how to migrate.

Added

  • Argument defaults can be any expr valid in const scope (by @alekitto) [#433]

Fixed

  • (args) Fix variadic args (by @Xenira) [#337]
  • (macro) Add missing static flags in php_impl macro (by @Norbytus) [#419]
  • (macro) Add missing separator pipe in flags (by @Norbytus) [#412]

Other

  • (bindings) Add tooling to generate docsrs_bindings.rs (by @Xenira) [#443]
  • (cargo-php) Add locked option to install guide (#370) (by @Xenira) [#370] [#314]
  • (clippy) Apply pedantic rules (by @Xenira) [#418]
  • (coverage) Add coverage badge (by @Xenira)
  • (deps) Update syn and darling (#400) (by @Xenira) [#400]
  • (guide) Directly include doc comments (by @Xenira)
  • (macro) Change rename to change_case (by @Xenira)
  • (macro) Use #[php] attribute for startup function (by @Xenira) [#423]
  • (macro) Trait rename for general and method names (by @Norbytus) [#420]
  • (macro) Update documentation for builder pattern (by @Xenira)
  • (macro) Add stubs for new builder pattern (by @Xenira) [#183]
  • Add git hooks and CONTRIBUTING.md (by @Xenira) [#475]
  • Typo in README.md (by @kakserpom)

Thanks to the contributors for this release: