Having a *-sys crate depending on rust "staticlib" crate #7524
Labels
A-crate-dependencies
Area: [dependencies] of any kind
A-linkage
Area: linker issues, dylib, cdylib, shared libraries, so
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-needs-design
Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Describe the problem you are trying to solve
I have a
*-sys
crate wrapping a C lib. This C lib needs some other C functions provided by some C code. I choose the reimplement these functions in Rust in a "shims" crate, as astaticlib
.On top of the
*-sys
I have a*-rs
crate to make my safe wrapper.What I'm trying to do and don't know if it's possible at the moment, is when using the
*-rs
crate, it builds the*-sys
crate which will build the Rust staticlib.I've asked on reddit (https://www.reddit.com/r/rust/comments/di6uos/sys_crate_depending_on_a_rust_static_lib_build/) and it doesn't seem possible hence this ticket.
Describe the solution you'd like
Some way to describe a dependency from my
*-sys
to a Rust staticilb.If it's already possible, sorry for the bother ^^
The text was updated successfully, but these errors were encountered: