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

Building tensorflow-sys causes failure to run custom build script in sandbox #2016

Closed
Corallus-Caninus opened this issue Jan 24, 2023 · 1 comment

Comments

@Corallus-Caninus
Copy link

Crate name

Brains

Build failure link

https://docs.rs/crate/Brains/0.2.0/builds/727641

Additional details

I believe I can request more resources but am unsure if this is what causes the failure. I can build the tensorflow-sys dependency on my local machine so I suspect it is in the custom Build script (which fetches and unpacks binaries) or a resource timeout (memory). I am willing to build my documentation locally and publish but cannot find any documentation on how to do so. Is the constrained build environment the only way to upload to docs.rs?

@Corallus-Caninus Corallus-Caninus changed the title tensorflow-sys causes failure to run custom build script Building tensorflow-sys causes failure to run custom build script in sandbox Jan 24, 2023
@syphar
Copy link
Member

syphar commented Jan 24, 2023

There is currently no way for you to push your self-built documentation to docs.rs (see also #93 )

In general the build doesn't have any access to the network, which means you also can't download any binaries in your build-script. See also https://docs.rs/about/builds.

Looking at tensorflow-sys you can also see an example how to make the docs still build:
https://github.com/tensorflow/rust/blob/3f3f618678ffb42677366ee820d34b3772f18281/tensorflow-sys/Cargo.toml#L17-L19

@syphar syphar closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants