-
Notifications
You must be signed in to change notification settings - Fork 22
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
Retrieving all aggregated include/flags/etc for the entire probe #28
Comments
Hi Paolo, thanks for your feedback.
I'm not sure to understand what you mean here. The
The key should always be the entry name in That said, returning a custom objects rather than an hash table sounds like a good idea. Having helpers returning aggregated values of the different settings would make sense, I think. |
Done in #31 |
Sorry I was not clear. Yes, basically I had two requests/suggestions:
|
I just implemented the API we discussed in #32 . Can you please give it a shot and check if it fits your needs? |
That was fast! It looks like what I need, but I will give that a try as soon as possible. Maybe call the object |
Makes sense, I renamed it. |
I confirm the branch works for me |
I just released 3.0.0 with this new API. |
I need to build a small C library from
build.rs
(see below for an example), so I am using thecc
crate, however there is no "simple" way to get all the include_paths. I have to uselibs.get("foo").unwrap().include_paths.clone();
but this has various issues:probe()
mangles the library name, so for instanceget("gdk-pixbuf-2.0")
fails, because the actual key in the map isgdk_pixbuf_2_0
, but the caller has no way to know this.Maybe probe should actually return a new type rather than the raw hash table.
The text was updated successfully, but these errors were encountered: