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.
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
Feature/599 provide and use c service in rust #627
base: master
Are you sure you want to change the base?
Feature/599 provide and use c service in rust #627
Changes from 21 commits
2c8d89a
2f37f72
3b4ccb9
4c14d8c
21b0027
1654e21
dd13817
99717a6
3ef7b52
b2e8657
5329420
8b3f943
53654a3
88deb83
bf01a26
f227191
e3aa83a
e0f3c4c
c89893f
9fd6da5
766ee3b
dc81c7a
4e91216
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
INCLUDE_DIRECTORIES
alone is not enough, we shall also haveCOMPILE_DEFINITIONS
andCOMPILE_OPTIONS
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it's OK to have static libcelix.
Considering its size, 200KB for x64 release build, it might be preferable to built as shared object.
But unfortunately I've not found any way to make BUILD_RPATH work for Corrosion, without which it is quite inconvenient to run the resulting binary in the build tree.
Even if we can add
BUILD_RPATH
via build.rs, I don't know how to make RPATH rewrite work.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not feel right. In the C version, activator is dropped after
celix_bundleContext_waitForEvents(ctx)
.IMHO, the best fix is to change the corresponding logic in
celix_framework_stopBundleEntryInternal
:From
To
So that we can remove
celix_bundleContext_waitForEvents(ctx)
from the generatedcelix_bundleActivator_destroy
. Also we re-promote usage of create/start/stop/destroy rather thanCELIX_GEN_BUNDLE_ACTIVATOR
.