-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Publish libc-test
on crates.io
#2065
Comments
You should use |
I'm not sure what you mean by "external use". We're using it to test the libc crate, not something else. It's important that we do this because we link the libc crate against the Android platform's sysroots (bionic) and not against the NDK, so we need to test behavior within the crate and not just the FFI bindings. Testing against bionic benefits the libc crate as well. It allows us catch potential bugs introduced in bionic before they reach the NDK. Tests for other platforms are not an issue. We ignore them. I could upload libc-test crate myself, but I figured that one of the existing maintainers would be better suited to own it. Alternatively, I could move Android to pulling directly from github instead of crates.io, but that diverges from how we manage other third party crates, so I'd prefer to not do that. |
Hmm, I still don't think "publishing" is the right way here, you should access it via Git. For instance, we use |
I disagree. There are many reasons why someone may want to follow crates.io versions, but may also still want to test them. In other crates I maintain I've had to field similar requests and various reasons I've seen crop up:
Ultimately, they could use Basically, this is important for use cases where the environment is somewhat bespoke, and they still want to use versioned crates.io deps (doing git-replacement for everything is just not feasible). In such environments it's important to test the crate being used, since that environment is not one that people would CI for ("AOSP build system environment" and "Packaging environment for $randomdistro" are not typically something folks would accept PRs to test for 😄 ) |
Bump up libc version to 0.2.87 r? `@ghost` In order to unblock rust-lang/rust#82400. This also closes #2065.
Bump up libc version to 0.2.87 r? `@ghost` In order to unblock rust-lang/rust#82400. This also closes #2065.
Thanks for clarifying @Manishearth! So, I'm preparing an initial release for UPDATE: Published at https://crates.io/crates/libc-test. |
Thank you so much @JohnTitor ! |
Right now,
libc-test
only exists as a subdirectory of this repository. In Android, we've been using crates.io as our primary source of third party packages, and it would be nice forlibc-test
to not be an exception. This would make it easier for us to enable CI of the libc crate within the Android Open Source Project.The text was updated successfully, but these errors were encountered: