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 for musl #85

Closed
timvisee opened this issue Nov 3, 2020 · 2 comments
Closed

Support for musl #85

timvisee opened this issue Nov 3, 2020 · 2 comments

Comments

@timvisee
Copy link
Contributor

timvisee commented Nov 3, 2020

Compiling for the x86_64-unknown-linux-musl target succeeds, but invoking show() on a notification causes a segfault at runtime.

How would I use notify-rust on musl? Are there any plans to support this?

Give it a try with:

PKG_CONFIG_ALLOW_CROSS=1 cargo run --target="x86_64-unknown-linux-musl" --example simple
@hoodie
Copy link
Owner

hoodie commented Jan 8, 2021

Up until now notify-rust relied solely on dbus-rs (which links to libdbus), so musl wasn't possible.
Luckily we now have an alternative with zbus (a selfcontained pure rust dbus implementation).
So I just tried it out and it seems to work.

try something like this:

cargo run --target x86_64-unknown-linux-musl --no-default-features --features z --example simple

@hoodie
Copy link
Owner

hoodie commented Jan 9, 2021

I'd consider this solved, thanks for bringing it up

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

No branches or pull requests

2 participants