-
Notifications
You must be signed in to change notification settings - Fork 110
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
Add build support for docs.rs #336
Comments
Surma's changes to the build script were made after the 1.0.0 release of the crate. We need to release a new version of the |
Opened #445 to bump quickjs-wasm-sys version in preparation for publishing |
|
https://docs.rs/crate/quickjs-wasm-sys/1.1.0/builds/874424 shows the output. Relevant logs are:
That looks like a DNS failure error message to me. We'll need to do more work to resolve this. |
Docs.rs might just be blocking network access altogether to prevent abuse. |
Confirmed that docs.rs blocks network access, https://docs.rs/about/builds#hitting-resource-limits:
We can request for Ubuntu packages to be added to the build environment. There is one for There is also a disclaimer on the WASI SDK page:
I tried installing that archive file with no luck. Installing the archive file on the docs.rs build server would not be possible without copying the clang installation (which should be doable) since docs.rs will fail builds that try to write to locations outside the |
Opened rust-lang/crates-build-env#136 on the build environment to see if the upstream maintainers have any thoughts. |
I figured out a way to build WASI source code from C source code. I've opened rust-lang/crates-build-env#137 to add the requisite packages to docs.rs's build environment. We will also need to vendor |
I've got a work-in progress on https://github.com/bytecodealliance/javy/compare/jc.docsrs-support?expand=1. It seems to work on an Ubuntu docker container. |
rust-lang/crates-build-env#137 was merged but won't be deployed until next week. There is a docker container I can use to test but the setup looks like it may rely on |
Merged #453. Will publish a pre-release of the crate after CI passes to see if docs.rs can build it. |
Looks like it worked! https://docs.rs/quickjs-wasm-sys/1.1.1-alpha.1/quickjs_wasm_sys/ Opened #474 to release new versions of all of our library crates. |
Merged #474 and published new versions of all crates. I've confirmed that documentation is now building successfully on docs.rs. |
What is the idea?
Add support for building
quickjs-wasm-sys
and everything depending on it to docs.rs.What problem does it solve?
Docs.rs is a common place for viewing crate documentation, and at the moment,
quickjs-wasm-sys
and crates that depend on it like quickjs-wasm-rs do not build successfully on docs.rs.The text was updated successfully, but these errors were encountered: