Use allowlist to keep the exports minimal#96
Merged
yutannihilation merged 8 commits intoextendr:masterfrom Jan 5, 2023
Merged
Conversation
commit e2b33b5 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Sat Feb 12 19:49:20 2022 +0900 Further tweak commit 5f89940 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Sat Feb 12 19:25:58 2022 +0900 [PoC] Use allowlist to keep the exports minimal commit 9ff593b Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Thu Feb 10 23:30:38 2022 +0900 Fix bindings name commit 45dc8c6 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Fri Feb 4 20:50:53 2022 +0900 Do not expose DEP_R_R_VERSION_STRING commit bb2ad61 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Fri Feb 4 20:37:33 2022 +0900 Improve a comment commit 96137e0 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Fri Feb 4 20:36:47 2022 +0900 Improve a comment commit bc128e0 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Fri Feb 4 20:36:40 2022 +0900 Implement get_r_binary() commit fbb5488 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Fri Feb 4 20:23:13 2022 +0900 Fix r_version_devel commit c13d779 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Fri Feb 4 20:22:06 2022 +0900 Rename LIBR_SYS_R_VERSION to LIBRSYS_R_VERSION commit 8f27931 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Thu Feb 3 09:47:45 2022 +0900 Make environmental variables const commit 84b2f42 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Thu Feb 3 09:16:48 2022 +0900 Fix clippy warning or_fun_call commit c477bb1 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Thu Feb 3 09:13:17 2022 +0900 Improve comment commit 05a6f49 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Thu Feb 3 09:08:21 2022 +0900 Reject empty version string commit 6f66e41 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Thu Feb 3 08:58:36 2022 +0900 Retry only when the envvar is not set commit c13c80f Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Thu Feb 3 08:50:07 2022 +0900 Fix unused import commit e8d1df4 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Thu Feb 3 08:43:08 2022 +0900 Fix a typo commit 36d42e9 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Thu Feb 3 02:32:22 2022 +0900 Fix comment commit 98c5574 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Thu Feb 3 02:19:52 2022 +0900 Rustfmt commit 1962625 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Thu Feb 3 02:19:45 2022 +0900 Refactor parseing R version commit f85d498 Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Thu Feb 3 00:03:46 2022 +0900 Refactor get_r_version_from_r commit 70fe57f Author: Hiroaki Yutani <yutani.ini@gmail.com> Date: Wed Feb 2 23:13:57 2022 +0900 Refactor probe_r_paths()
e2b33b5 to
51bfb48
Compare
This was referenced Feb 17, 2022
Contributor
Author
|
@Ilia-Kosenkov @andy-thomason |
Contributor
Author
|
@Ilia-Kosenkov |
Member
|
Looks good, but let me restart CI since the last run was ~2 weeks ago -- to be on the safe side. |
Ilia-Kosenkov
approved these changes
Jan 5, 2023
Member
Ilia-Kosenkov
left a comment
There was a problem hiding this comment.
LGTM, thanks & sorry for delay
Contributor
Author
|
No worries. Thanks for reviewing! |
Merged
CGMossa
pushed a commit
to CGMossa/libR-sys
that referenced
this pull request
Jan 21, 2024
CGMossa
pushed a commit
to CGMossa/libR-sys
that referenced
this pull request
Jan 21, 2024
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See #95 (comment)
Currently, libR-sys exports all symbols wildly, including those from the C standard library. I think we should keep the exports minimal to avoid confusion. This pull request tries to create a proper allowlist. The basic idea is to extract and parse the include files by ourselves first and construct an allowlist because there seems not measure to stop bindgen to parse the C standard library.