|Oct 8, 2023
|Oct 8, 2023
|Apr 8, 2023
#390 in Cargo plugins
123 downloads per month
Used in cargo-indicate
🚨 cargo-indicate 🚨Run GraphQL Queries on Your Rust Dependency Tree
To get started, install
cargo install cargo-indicate
and check out the
cargo-indicate allows for experimenting, it might be a good idea to read
the conclusions in this thesis, as they provide guidance and context on how to
interpret the results, and provides context. The thesis also includes
explanation of the code and design decisions.
Caching of HTTP requests
indicate will cache already made requests during one run, it will also
use the GitHub HTTP cache system, where ETags are used to verify if an API
request has changed since it was last made (perhaps in another invocation of
indicate). If it receives a
304 Not Changed, it will use the
directory to retrieve a cached version.
cargo-indicate, providing a way to query dependencies across
different sources of information such as crates.io metadata, GitHub etc.
Queries are written using
trustfall, a query engine for writing queries
across data sources. Currently only GraphQL-like schemas are available. The
following is the schema used that can be used to construct queries. Note
that only the directives provided here can be used.
The following code is automatically included from the