Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic binding generation #264

Closed
wants to merge 131 commits into from
Closed

Automatic binding generation #264

wants to merge 131 commits into from

Commits on Nov 24, 2022

  1. Configuration menu
    Copy the full SHA
    15f80d7 View commit details
    Browse the repository at this point in the history
  2. Closer to usable

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    c8be96d View commit details
    Browse the repository at this point in the history
  3. Mostly works with NSCursor

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    2315c68 View commit details
    Browse the repository at this point in the history
  4. Mostly works with NSAlert.h

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    197a05e View commit details
    Browse the repository at this point in the history
  5. Refactor a bit

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    2474385 View commit details
    Browse the repository at this point in the history
  6. AppKit is now parse-able

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    91cc01c View commit details
    Browse the repository at this point in the history
  7. handle reserved keywords

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    d09866c View commit details
    Browse the repository at this point in the history
  8. Handle protocols somewhat

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    556a5d8 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f3093fc View commit details
    Browse the repository at this point in the history
  10. Works with Foundation

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    fb6096c View commit details
    Browse the repository at this point in the history
  11. Cleanup

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    399afc8 View commit details
    Browse the repository at this point in the history
  12. Refactor

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    61535ee View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    80a3404 View commit details
    Browse the repository at this point in the history
  14. Parse more things

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    8249f69 View commit details
    Browse the repository at this point in the history
  15. Parse NSConsumed

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    236d9d3 View commit details
    Browse the repository at this point in the history
  16. Verify memory management

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    68503bb View commit details
    Browse the repository at this point in the history
  17. More work

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    00522fe View commit details
    Browse the repository at this point in the history
  18. Fix reserved keywords

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    5e95345 View commit details
    Browse the repository at this point in the history
  19. Refactor statements

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    bc25f91 View commit details
    Browse the repository at this point in the history
  20. Add initial availability

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    7e35057 View commit details
    Browse the repository at this point in the history
  21. Prepare RustType

    madsmtm committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    29b7560 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    00b4678 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2022

  1. Add icrate

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    69a3d46 View commit details
    Browse the repository at this point in the history
  2. Add config files

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    5956025 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cb9da7d View commit details
    Browse the repository at this point in the history
  4. Generate files

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    e7d9e13 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f4165ee View commit details
    Browse the repository at this point in the history
  6. Skip "index" header

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    88f5459 View commit details
    Browse the repository at this point in the history
  7. Add basic imports

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    0044e4d View commit details
    Browse the repository at this point in the history
  8. Allow skipping methods

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    c6a6058 View commit details
    Browse the repository at this point in the history
  9. Properly emit unsafe

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    1aecbea View commit details
    Browse the repository at this point in the history
  10. Make classes public

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    522955a View commit details
    Browse the repository at this point in the history
  11. Rename objc feature flag

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    1a59c17 View commit details
    Browse the repository at this point in the history
  12. Improve imports somewhat

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    9ba52d1 View commit details
    Browse the repository at this point in the history
  13. Further import improvements

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    0d9a20c View commit details
    Browse the repository at this point in the history
  14. Handle basic typedefs

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    09381b2 View commit details
    Browse the repository at this point in the history
  15. Improve generics handling

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    ca1093f View commit details
    Browse the repository at this point in the history
  16. Improve pointers to objects

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    ac6a706 View commit details
    Browse the repository at this point in the history
  17. Refactor RustType::TypeDef

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    5a4c02f View commit details
    Browse the repository at this point in the history
  18. Mostly support generics

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    7652279 View commit details
    Browse the repository at this point in the history
  19. Refactor config setup

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    d9f6424 View commit details
    Browse the repository at this point in the history
  20. Small fixes

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    3cd224a View commit details
    Browse the repository at this point in the history
  21. Support nested generics

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    fc07a0c View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    2b181be View commit details
    Browse the repository at this point in the history
  23. Emit all files

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    0cd5ee8 View commit details
    Browse the repository at this point in the history
  24. Parse sized integer types

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    02792f1 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    5ee3e77 View commit details
    Browse the repository at this point in the history
  26. Appease clippy

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    39b448c View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    3bc7009 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    9bdc5b6 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    0aa9211 View commit details
    Browse the repository at this point in the history
  30. Make AppKit work again

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    78cc5b8 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    6781ccb View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    932e364 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    d59a273 View commit details
    Browse the repository at this point in the history
  34. Fix out parameters (except for NSError)

    Assuming we find a good solution to #277
    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    ce48683 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    d0ae01e View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    8e2719c View commit details
    Browse the repository at this point in the history
  37. Refactor property parsing

    Fixes their order to be the same as in the source file
    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    1be4828 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    f05e4cb View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    7ae7089 View commit details
    Browse the repository at this point in the history
  40. Refactor slightly

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    eb96988 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    baf2918 View commit details
    Browse the repository at this point in the history
  42. Put method output inside an extern_methods! call

    We'll want this no matter what, since it'll allow us to extend things with availability attributes in the future.
    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    7243dba View commit details
    Browse the repository at this point in the history
  43. Use extern_methods! functionality

    To cut down on the amount of code, which should make things easier to review and understand.
    
    This uses features which are not actually yet done, see #244.
    
    Not happy with the formatting either, but not sure how to fix that?
    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    b7179a7 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    d197f00 View commit details
    Browse the repository at this point in the history
  45. Add AppKit bindings

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    e6163d0 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    f2585f1 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    9cbb09e View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    2d12042 View commit details
    Browse the repository at this point in the history
  49. Document SDK situation

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    5b2cf14 View commit details
    Browse the repository at this point in the history
  50. Parse headers on iOS as well

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    1bf1966 View commit details
    Browse the repository at this point in the history
  51. Refactor stmt parsing a bit

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    e59d24a View commit details
    Browse the repository at this point in the history
  52. Remove Stmt::FileImport and Stmt::ItemImport

    These are not nearly enough to make imports work well anyhow, so I'll rip it out and find a better solution
    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    7dc5107 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    74a3615 View commit details
    Browse the repository at this point in the history
  54. Refactor so that file writing is done using plain Display

    Allows us to vastly improve the speed, as well as allowing us to make the output much prettier wrt. newlines and such in the future (proc_macro2 / quote output is not really meant to be consumed by human eyes)
    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    b5321fb View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    55887dd View commit details
    Browse the repository at this point in the history
  56. Don't crash on unions

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    e31a840 View commit details
    Browse the repository at this point in the history
  57. Add initial enum parsing

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    bed5cae View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    a901658 View commit details
    Browse the repository at this point in the history
  59. Add very simple enum output

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    73622ef View commit details
    Browse the repository at this point in the history
  60. Fix duplicate enum check

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    5233fe9 View commit details
    Browse the repository at this point in the history
  61. Improve enum expr parsing

    This should make it easier for things to work on 32-bit platforms
    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    44d568b View commit details
    Browse the repository at this point in the history
  62. Add static variable parsing

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    605a57e View commit details
    Browse the repository at this point in the history
  63. Add a bit of WIP code

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    83a5edd View commit details
    Browse the repository at this point in the history
  64. Add function parsing

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    b79667a View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    533ae24 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    75e3082 View commit details
    Browse the repository at this point in the history
  67. Trim unnecessary parentheses

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    13d6f1c View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    615c5b2 View commit details
    Browse the repository at this point in the history
  69. Remove methods that are both instance and class methods

    For now, until we can solve this more generally
    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    a013cd8 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    f877cf7 View commit details
    Browse the repository at this point in the history
  71. Improve imports setups

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    c3e10d0 View commit details
    Browse the repository at this point in the history
  72. Bump recursion limit

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    10c863b View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    fb65380 View commit details
    Browse the repository at this point in the history
  74. Fix int64_t type translation

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    b95b357 View commit details
    Browse the repository at this point in the history
  75. Make statics public

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    4afcce1 View commit details
    Browse the repository at this point in the history
  76. Fix init methods

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    639ebdc View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    c44ebee View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    ecb690f View commit details
    Browse the repository at this point in the history
  79. Custom NSObject

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    797a00d View commit details
    Browse the repository at this point in the history
  80. TMP import

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    e051dd5 View commit details
    Browse the repository at this point in the history
  81. Remove NSProxy

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    79f4692 View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    e7d6ab7 View commit details
    Browse the repository at this point in the history
  83. Add struct support

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    da25fc0 View commit details
    Browse the repository at this point in the history
  84. Configuration menu
    Copy the full SHA
    6afde3a View commit details
    Browse the repository at this point in the history
  85. Configuration menu
    Copy the full SHA
    dee50de View commit details
    Browse the repository at this point in the history
  86. Output remaining typedefs

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    3c3c3c4 View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    67f7efd View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    7885cb3 View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    be5916b View commit details
    Browse the repository at this point in the history
  90. Fix anonymous enum types

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    c18ce67 View commit details
    Browse the repository at this point in the history
  91. Fix AppKit duplicate methods

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    d5ff384 View commit details
    Browse the repository at this point in the history
  92. Add CoreData

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    ff3012f View commit details
    Browse the repository at this point in the history
  93. Properly fix imports

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    8694beb View commit details
    Browse the repository at this point in the history
  94. Add abstract keyword

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    588e17f View commit details
    Browse the repository at this point in the history
  95. Configuration menu
    Copy the full SHA
    f495d75 View commit details
    Browse the repository at this point in the history
  96. Configuration menu
    Copy the full SHA
    98d8dd8 View commit details
    Browse the repository at this point in the history
  97. Refactor type parsing

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    4e692fe View commit details
    Browse the repository at this point in the history
  98. Configuration menu
    Copy the full SHA
    b2815b4 View commit details
    Browse the repository at this point in the history
  99. Refactor Ty a bit more

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    7f61929 View commit details
    Browse the repository at this point in the history
  100. Configuration menu
    Copy the full SHA
    78fcdd1 View commit details
    Browse the repository at this point in the history
  101. Configuration menu
    Copy the full SHA
    d78b975 View commit details
    Browse the repository at this point in the history
  102. Configuration menu
    Copy the full SHA
    2d25da2 View commit details
    Browse the repository at this point in the history
  103. Add extern functions

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    0bcf7d0 View commit details
    Browse the repository at this point in the history
  104. Emit protocol information

    We can't parse it yet though, see #250
    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    35988ba View commit details
    Browse the repository at this point in the history
  105. Make CoreData compile

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    2080c5e View commit details
    Browse the repository at this point in the history
  106. Make AppKit compile

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    baff198 View commit details
    Browse the repository at this point in the history
  107. Configuration menu
    Copy the full SHA
    cb00d95 View commit details
    Browse the repository at this point in the history
  108. Configuration menu
    Copy the full SHA
    d1ae521 View commit details
    Browse the repository at this point in the history
  109. Refactor Foundation fixes

    madsmtm committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    1c4c875 View commit details
    Browse the repository at this point in the history