I want to bind a C library for rust. The full version is rather big, so I would like to use a system copy by default if available, but fall back to a slightly cut-down vendored version if it is not possible or the user does not want it (e.g. on Windows)?
What is the best current practice for something like that? Are there any crates that I could use as examples?