-
Notifications
You must be signed in to change notification settings - Fork 183
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
APIView for Rust #9592
base: main
Are you sure you want to change the base?
APIView for Rust #9592
Conversation
Interesting. Last I looked only the public API surface i.e., anything reachable via public API, was included. How did you ascertain elements were truly private?
You don't need to do this separately. Just have them run |
tools/apiview/parsers/rust-api-parser/clean-rust-doc-output/README.md
Outdated
Show resolved
Hide resolved
tools/apiview/parsers/rust-api-parser/clean-rust-doc-output/README.md
Outdated
Show resolved
Hide resolved
tools/apiview/parsers/rust-api-parser/clean-rust-doc-output/inputs/docs.json
Outdated
Show resolved
Hide resolved
tools/apiview/parsers/rust-api-parser/clean-rust-doc-output/inputs/docs/Cargo.toml
Outdated
Show resolved
Hide resolved
tools/apiview/parsers/rust-api-parser/clean-rust-doc-output/src/main.rs
Outdated
Show resolved
Hide resolved
tools/apiview/parsers/rust-api-parser/clean-rust-doc-output/src/main.rs
Outdated
Show resolved
Hide resolved
tools/apiview/parsers/rust-api-parser/clean-rust-doc-output/src/main.rs
Outdated
Show resolved
Hide resolved
tools/apiview/parsers/rust-api-parser/get-api-view/expected-outputs/docs.rs
Outdated
Show resolved
Hide resolved
…ADME.md Co-authored-by: Heath Stewart <[email protected]>
…lluru/azure-sdk-tools into harshan/rust-api-parser
It's a miss on my part. By filtering with the visibility, I got a much smaller copy of the API that resembled my expected output. I shouldn't have called the others' private. |
- JSON Schema expected by the APIView tool - RustDoc JSON output encoding in Typescript - segregating the item classification and parsing into different files, functions, modules and traits are done
…lluru/azure-sdk-tools into harshan/rust-api-parser
add --package flag
Does this imply that Rust allows you to access the transitive closure of all types reachable via public API? That is a surprising behavior - most languages hide non-public elements of public APIs (and types referenced by public APIs). Some return errors if a non-public type is returned by a public API (I thought Rust did this), which means that private types reachable via public API were not a thing. And wouldn't it be the job of rustdoc to figure out which types are public and which types are not public (in other words, the ApiView tool wouldn't necessarily have to handle this). |
You're right @LarryOsterman. It's a miss on my part in the initial stages. Ignore the comment. |
Issue Azure/azure-sdk-for-rust#1621
Rust API Parser
This repository contains the tool for parsing rustdoc output into API view.
Links
Related work
Output from
generate_api_report
at Azure/azure-sdk-for-rust#2019 is fed intorust-api-parser
here as input.rust-api-parser
generate_api_report
.Usage
get-api-view
folder.To Dos