Skip to content
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

Convert to cargo metadata as a backend #496

Merged
merged 26 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
11fc031
Add `cargo-metadata` as a dependency
Shnatsel Oct 25, 2023
6a85dba
Drop logging configuration for Cargo internals
Shnatsel Oct 25, 2023
79a5c52
Drop #[deny] directives for warnings and lints. These should not be u…
Shnatsel Oct 25, 2023
1c29f67
Implement querying `cargo metadata`
Shnatsel Oct 25, 2023
85225dc
Drop some more #[deny] directives that would break production builds
Shnatsel Oct 25, 2023
a358ce4
WIP conversion of create_sboms() to cargo-metadata
Shnatsel Oct 25, 2023
f7d240c
convert create_sboms() and create_bom() to cargo-metadata
Shnatsel Oct 26, 2023
9163729
Convert the rest of the generator functions to cargo-metadata
Shnatsel Oct 26, 2023
efc37f2
Comment out toplevel/all dependency filtering for now
Shnatsel Oct 26, 2023
b3f9ad4
BEHOLD, IT COMPILES
Shnatsel Oct 26, 2023
dbd3367
Purge the last reference to Cargo internals
Shnatsel Oct 26, 2023
7b52d4a
Remove Cargo from the dependency tree
Shnatsel Oct 26, 2023
c398423
Re-enable reading config from Cargo.toml, even though this seems like…
Shnatsel Oct 26, 2023
7342217
Do not assert any specific error message on invalid Cargo.toml in tes…
Shnatsel Oct 26, 2023
0bdd508
Add a comment explaining that the configuration does not work correct…
Shnatsel Oct 26, 2023
e519aef
cargo fmt
Shnatsel Oct 26, 2023
1b7372e
Reimplement filtering of top-level dependencies
Shnatsel Oct 26, 2023
edc3583
Also reimplement all_dependencies() with cargo-metadata
Shnatsel Oct 26, 2023
e0a4cb5
Make top_level_dependencies() consistent with all_dependencies() in o…
Shnatsel Oct 26, 2023
d61cc75
Re-enable selection of direct deps only or all deps
Shnatsel Oct 26, 2023
0623190
Drop unused import
Shnatsel Oct 26, 2023
ade4077
Include the root package in the output of top_level_dependencies() an…
Shnatsel Oct 26, 2023
39b3426
Fix a test that was creating an invalid dependency without a lib targ…
Shnatsel Oct 26, 2023
416914d
Suppress the warning about resolve being unused for now
Shnatsel Oct 26, 2023
6a731f5
Omit the toplevel package from the list of components
Shnatsel Oct 26, 2023
819b269
Fix typo in comment
Shnatsel Oct 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Loading