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

Update nanobind to v2.0.0 #27

Merged
merged 2 commits into from
May 27, 2024
Merged

Update nanobind to v2.0.0 #27

merged 2 commits into from
May 27, 2024

Conversation

nicholasjng
Copy link
Owner

Changes needed to make the upgrade work:

  1. Bump robin-map to v1.3.0. This is due to the added API erase_fast(iterator pos)
    contributed to robin-map that is used in nanobind to avoid expensive lookups in hashmaps.
  2. Bump nanobind to v2.0.0. I had to exclude the nb_combined.cpp file to fix a
    compilation error when building libnanobind.

Also includes some core dependency updates in fff5a84.

Addresses #26.

Source thread for the robin-map change is in Tessil/robin-map#76, backstory is contained in wjakob/nanobind#507 and references therein.

Changes needed to make the upgrade work:

1) Bump robin-map to v1.3.0. This is due to the added API `erase_fast(iterator pos)`
contributed to robin-map that is used in nanobind to avoid expensive lookups in hashmaps.
2) Bump nanobind to v2.0.0. I had to exclude the `nb_combined.cpp` file to fix a
compilation error when building libnanobind.
@nicholasjng nicholasjng added this to the v2.0.0 milestone May 26, 2024
@nicholasjng nicholasjng self-assigned this May 26, 2024
@nicholasjng
Copy link
Owner Author

cc @hawkinsp.

@nicholasjng nicholasjng linked an issue May 26, 2024 that may be closed by this pull request
@nicholasjng
Copy link
Owner Author

My plan is now to issue a new v2.0.0 tag to the BCR for nanobind-bazel mirroring nanobind@v2.

The new BCR release will also probably have to have its compatibility_level raised to 2 to prevent build failures.

@nicholasjng nicholasjng merged commit b67c522 into master May 27, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update nanobind to v2.0
1 participant