Papierkorb / bindgen

Binding and wrapper generator for C/C++ libraries
GNU General Public License v3.0
179 stars 18 forks source link

Update for Crystal 1.0.0 #115

Closed kalinon closed 3 years ago

kalinon commented 3 years ago

This is a clean merge and fix of master and my fork. Ive fixed various issues with the specs. major changes include:

  1. Adding logging (only error by default)
  2. Added operator method regex logic to sanity check
  3. formatting (crystal tool format)
  4. upped to crystal 1.0.0

spec tests: all passed

Finished in 29.95 seconds
393 examples, 0 failures, 0 errors, 0 pending
docelic commented 3 years ago

Wonderful, thanks! Let's keep it open for a day or two more in case you think of anything else to add and then merge.

kalinon commented 3 years ago

@docelic sounds good. https://github.com/Papierkorb/toka/pull/2 is also needed to get error free shard installs.

➜  bindgen git:(crystal-1.0.0) shards
Resolving dependencies
Fetching https://github.com/papierkorb/toka.git
Fetching https://github.com/spoved/spoved.cr.git
Fetching https://github.com/icyleaf/halite.git
Unable to satisfy the following requirements:

- `crystal (~> 0.24, >= 0.24.1)` required by `toka 0.1.2`
- `crystal (~> 1.0, >= 1.0.0)` required by `spoved 0.5.0`

I temporarily changed it to my fork to ensure the shards install work:

➜  bindgen git:(crystal-1.0.0) ✗ shards update
Resolving dependencies
Fetching https://github.com/kalinon/toka.git
Fetching https://github.com/spoved/spoved.cr.git
Fetching https://github.com/kalinon/halite.git
Using toka (0.1.2 at 72a06e1)
Using halite (0.11.0 at d51d5e7)
Using spoved (0.5.1)
Writing shard.lock