-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Derive macro for
IntoPyObject
(#4495)
* initial `IntoPyObject` derive (transparent newtype structs) * derive intopyobject for structs and tuple structs * support lifetimes * support enums * fix spans * compile error tests * add some tests * add hygiene tests * add newsfragment * don't drop additional trait bound from the struct/enum definition * add migration guide entry * fix typo Co-authored-by: David Hewitt <[email protected]> * improve unit variant spans * update gudie * apply doc suggestions Co-authored-by: David Hewitt <[email protected]> * fix tuple expansion * parse `pyo3(item)` and `pyo3(attribute)` --------- Co-authored-by: David Hewitt <[email protected]>
- Loading branch information
1 parent
5266a72
commit c8eb45b
Showing
14 changed files
with
1,395 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added `IntoPyObject` derive macro |
Oops, something went wrong.