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

refactor(cbindings): Adding 'librln' to libwaku and cleaning waku_example.c #2044

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

Ivansete-status
Copy link
Collaborator

  • When adding the dependency with 'librln' to 'libwaku', it is required to remove the dependency with 'confutils' because the 'nim-confutils' module prevents the creation of a dynamic library (libwaku.so.)

  • waku_example.c: less code is needed because the Waku Thread attends any Waku event whereas the main thread can have a blocking scanf to retrieve user inputs.

* When adding the dependency with 'librln' to 'libwaku', it is required
  to remove the dependency with 'confutils' because the 'nim-confutils'
  module prevents the creation of a dynamic library (libwaku.so.)

* waku_example.c: less code is needed because the Waku Thread attends
  any Waku event whereas the main thread can have a blocking scanf
  to retrieve user inputs.
@Ivansete-status Ivansete-status marked this pull request as ready for review September 18, 2023 14:42
@github-actions
Copy link

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2044

Built from ab5181c

Copy link
Contributor

@SionoiS SionoiS left a comment

Choose a reason for hiding this comment

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

LGTM

Why does nim-confutils preclude dyn libs ?

@Ivansete-status Ivansete-status self-assigned this Sep 18, 2023
@Ivansete-status
Copy link
Collaborator Author

@SionoiS
Copy link
Contributor

SionoiS commented Sep 18, 2023

Why does nim-confutils preclude dyn libs ?

Because it uses commandLineParams() which doesn't allow dyn libs:

https://github.com/status-im/nim-confutils/blob/c8063eb8142aeb6489ded24f3da908bc7f921b7b/confutils.nim#L867

https://github.com/status-im/Nim/blob/71ba2e7f3c5815d956b1ae0341b0743242b8fec6/lib/pure/os.nim#L3001

Ah! OS dependent functions would be hard I'm guessing. Thanks!

@Ivansete-status Ivansete-status merged commit 11e7394 into master Sep 19, 2023
16 checks passed
@Ivansete-status Ivansete-status deleted the add-rln-to-libwaku-plus-little-refactoring branch September 19, 2023 15:01
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