-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Incorrect net
API attribution to futures-util
crate
#7
Comments
this one looks similar, for the
|
Attributing API usages to the right crate is definitely hard. The way it works at the moment is that each function name is split into parts and mapped to APIs. If the from-function matches an API, then we ignore matches for that API in the to-function. So for example if In the first example, there are from-functions like Until recently (some time in the last couple of days), cackle would always look for API usages in both the symbol name and the name from debug info. Now it uses the debug name if present and only falls back to the symbol if the debug name is missing. I'm not sure that change is related to this though. The debug name does tend to contain more useful information than the symbol. |
I looked into this some more. I think the issue is that the I suspect the best fix to your config would be to add "hyper" to I'm going to try to get Cackle to detect this kind of situation and suggest appropriate edits to API definitions. |
In one of our bigger projects where we use hyper, rustls, we get this problem highlighted by cackle attributed to the
futures-util
crate, but as far as I can see it doesn't use any of thestd::net
functions. But it is a generic type here that are used in other crates with their network types.So believe the detection of this using
net
APIs is correct, but not for this crate, it should have been attributed to the crate using the generic type. So maybe a problem with handling/parsing of generic types and which crates get assigned the "problem"?The text was updated successfully, but these errors were encountered: