Skip to content

Conversation

@philrhc
Copy link
Contributor

@philrhc philrhc commented Sep 26, 2024

refactors some of the prelinking logic from lib.rs into a new file prelink.rs
this starts an effort to make the architecture of the project more closely aligned with the three steps outlined in the presentation: prelink, link and init

https://docs.google.com/presentation/d/1kJ58_G1bApcRq0Ea1qipIVtC97GtMivoFFMzvTeeeqI/edit#slide=id.g27ac897f0bc_0_62

@philrhc philrhc changed the title wip: Prelinking prelinking Sep 27, 2024
Copy link
Collaborator

@dicej dicej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great; thanks for doing this!

Just one minor style nit; see comment below.

src/lib.rs Outdated
futures::future::FutureExt,
heck::ToSnakeCase,
indexmap::{IndexMap, IndexSet},
prelink::{embedded_helper_utils, embedded_python_standard_library},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor style nit: here you're importing these functions directly into scope, but later you call prelink::search_for_libraries_and_configs using the module qualifier (i.e. without importing it into scope). It would be best to be consistent about that, and the prevailing style is to use the module_name::function_name style when calling a freestanding function defined in another module.

TL;DR: let's not import these directly and instead use prelink::embedded_helper_utils and prelink::embedded_python_standard_library to call those functions, respectively.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed 110147c

@dicej dicej merged commit 5aa9438 into bytecodealliance:main Sep 30, 2024
1 check 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.

2 participants