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

Generate signatures for Cargo.toml files following rust-toolchain.toml #62

Merged
merged 3 commits into from
Apr 11, 2023

Conversation

leostera
Copy link
Member

This changeset will allow us to generate signatures that will let us build cargo binaries and libraries.

It puts us 1 step closer to bootstrapping the Rust Tricorder itself, and building Warp in Warp (see #25).

Knowing what rust-toolchain has been configured for a project will help
us understand what signatures need to be emited.

For example, if there are 4 `targets`, then for every library/binary
that we find in every `Cargo.toml` file, we want to include one
signature per target.

Also this information helps us configure what channel of the Rust
toolchain itself needs to be readied.
@leostera leostera added tricorders lang/rust Related to the Rust language support labels Apr 11, 2023
@leostera leostera requested a review from capitanu April 11, 2023 03:29
@vercel
Copy link

vercel bot commented Apr 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rules-warp-build ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 11, 2023 6:41pm
store-warp-build ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 11, 2023 6:41pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
docs-warp-build ⬜️ Ignored (Inspect) Apr 11, 2023 6:41pm

This changeset lets the DependencyManager know the exact versions of the
dependencies that are currently being used in the projec by scanning,
parsing, and consolidating `Cargo.lock` files.

It can use some improvements like namespacing of consolidated deps by
`Cargo.toml` prefix path, or support for Cargo workspaces, but its
enough of a start to let the generated signatures for `rust_binary` and
`rust_library` send back _requirements_.

This changeset also builds Requirements based on the Cargo.toml
dependencies, using the consolidated lockfile information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/rust Related to the Rust language support tricorders
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant