ext-php-rs-derive-v0.11.0
·
42 commits
to master
since this release
BREAKING CHANGES
Methods and Properties are renamed to camelCase by default. Classes to PascalCase, constants to UPPER_CASE and functions to snake_case
extends
andimplements
attributes now require thestub
property containing the class/interface name to be used in stubs.
Attributes like
#[prop]
,#[rename]
, etc. have been moved to#[php]
attributes like#[php(prop)]
,#[php(name = "Foo")]
,#[php(change_case = CamelCase)]
, etc.
- (macro) [breaking] Switch to builder pattern (by @davidcole1340, @danog, @ptondereau, @Xenira) [#99] [#131] [#327] [#174] [#335]
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
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
tochange_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)