-
Notifications
You must be signed in to change notification settings - Fork 47
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
Create stdx-check tool #35
Comments
Hi, when I try to run |
@davidpeklak Seems like it'll have to go into a different directory then, yeah. |
Though that makes things much more complex, since any relative paths will be broken. It might be easier to either:
|
Is there a reason cargo only accepts Cargo.toml even when the manifest path is explicitly provided? Perhaps that could be the thing to change instead. Ref https://github.com/rust-lang/cargo/pull/1955/files#diff-bfa065cd67c70cba1eccd5787281245fR47 |
I offer this cargo custom command as a first solution to issue #35, hoping to fulfil what is described as 'the most basic level' above. Note that it does not work with the current version of stdx, because of issues with some dependencies of stdx.
on the walkdir crate. |
@davidpeklak oh wow thank you! Yes, that is exactly the kind of thing I was hoping for. The README description sounds like it is pretty much doing exactly what I wanted. What's going on with 'chrono'? Why can't cargo find it? That seems pretty weird... Ok, so what do you think the next steps are? We could start building out the tooling for running stdx-check on ecosystem crates. A really simple way to start this would to just create a static list of crates and have the stdx CI run stdx-check over all of them every commit, report the percentage compatibility, maybe push them to a GitHub pages. We could start with perhaps this list, maybe add a number of higher-level crates as well. Would need to unbreak the CI, but I'm sure that's not hard to just disable whatever is busted. I like this idea a lot. You might consider merging stdx-check into this repo, though I understand if you would like to keep it independent. Please do email me if I fail to follow up in a timely way. |
@davidpeklak please ask on thread here. I will try to circle back regularly, but if you are on IRC please do ping me with the link. |
@brson I would like to merge cargo-stdx-check into this repo, but I am not sure how. I tried making stdx a workspace and add cargo-stdx-check as a crate, but it complains:
It does not make sense to me to add it as a dependency though. Do you have any suggestions? |
One of the main roles I have in mind for stdx is as tool to measure the compatibility of the larger ecosystem. The stdx-check tool determine whether any given crate was 'compatible' with stdx, serving two purposes:
At the most basic level I imagine it doing the following:
./Cargo.toml
to add the a stdx dependency (from git for now perhaps), outputting toCargo-stdx.toml
cargo test
on the new manifest to see if it passesOther nice follow on work:
include_str
ing their tomlsThe text was updated successfully, but these errors were encountered: