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

Support dynamic linking #179

Merged
merged 3 commits into from
Oct 30, 2022
Merged

Support dynamic linking #179

merged 3 commits into from
Oct 30, 2022

Conversation

wmedrano
Copy link
Member

In addition to dynamic loading.

In addition to dynamic loading.
@Be-ing
Copy link
Contributor

Be-ing commented Oct 30, 2022

While I'm glad this is coming back, I still think it's not a great idea to maintain a bespoke code generator just for this one crate. My offer remains open to revert back to dlib and reimplement everything that's been merged since then.

@wmedrano
Copy link
Member Author

I'll pass on the offer.

dlib fails if a single function is missing which is annoying at times. Also, a nit, I was not a fan of having to use the macro for function calls.

@wmedrano wmedrano merged commit 8f4e3ab into main Oct 30, 2022
@wmedrano wmedrano deleted the dynamic-loading branch October 30, 2022 23:42
mod functions {
include!(concat!(env!("OUT_DIR"), "/functions.rs"));
}

pub use consts::*;
pub use functions::*;
pub use functions::dynamic_linking;
pub use functions::dynamic_loading;
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be gated behind the feature? I think you now also need to have libjack available at compile time even when using the dynamic loading feature.

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.

3 participants