-
Notifications
You must be signed in to change notification settings - Fork 1
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
add configuration to build a dynamic library #57
Conversation
still needs some CI checks I think (for e.g. bzpipe working) |
Codecov ReportAll modified and coverable lines are covered by tests ✅ |
libbzip2-rs-sys-cdylib/Cargo.toml
Outdated
rust-version = "1.82" # MSRV | ||
|
||
[lib] | ||
name = "bz2_rs" # turns into e.g. `libz_rs.so` |
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.
s/libz_rs.so/libbz2_rs.so/
Co-authored-by: bjorn3 <[email protected]>
8537a4f
to
f34e208
Compare
f34e208
to
02573a9
Compare
.github/workflows/checks.yaml
Outdated
# - name: "cdylib: no_std" | ||
# env: | ||
# LD_LIBRARY_PATH: "target/${{matrix.target}}/release/deps" | ||
# working-directory: libbzip2-rs-sys-cdylib | ||
# run: | | ||
# cargo build --release --target ${{matrix.target}} --no-default-features | ||
# cc -o bzpipe_no_std bzpipe_no_std.c target/${{matrix.target}}/release/deps/libbz2_rs.so -I ../ | ||
# ./bzpipe_no_std < Cargo.toml | ./bzpipe_no_std -d > out.txt | ||
# cmp -s Cargo.toml out.txt |
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.
I'm still not sure how this works for zlib-rs and doesn't here
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.
got it, the [lib]
section of the main crate needs to be removed; that's allright, it is only meant to be used as a crate anyway, building libraries should happen with the cdylib crate.
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.
With the above zlib references fixed.
Co-authored-by: bjorn3 <[email protected]>
95fad82
to
9a01ee7
Compare
9a01ee7
to
28f5427
Compare
No description provided.