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

the remote server responded with an error: max upload size is #10825

Closed
armanriazi opened this issue Jul 5, 2022 · 2 comments
Closed

the remote server responded with an error: max upload size is #10825

armanriazi opened this issue Jul 5, 2022 · 2 comments
Labels
C-bug Category: bug

Comments

@armanriazi
Copy link

Problem

I ran cargo package a then it produce zip file 16mb and I know crates.io accept about 10mb. I was wondering what should I do it

error: failed to publish to registry at https://crates.io

Caused by:
  the remote server responded with an error: max upload size is: 10485760

Steps

cargo publish

Possible Solution(s)

Might be there is a environment variable for resize

Notes

No response

Version

cargo 1.62.0 (a748cf5a3 2022-06-08)
release: 1.62.0
commit-hash: a748cf5a3e666bc2dcdf54f37adef8ef22196452
commit-date: 2022-06-08
host: x86_64-unknown-linux-gnu
libgit2: 1.4.2 (sys:0.14.2 vendored)
libcurl: 7.80.0-DEV (sys:0.4.51+curl-7.80.0 vendored ssl:OpenSSL/1.1.1n)
os: Ubuntu 20.04 (focal) [64-bit]
@armanriazi armanriazi added the C-bug Category: bug label Jul 5, 2022
@Eh2406
Copy link
Contributor

Eh2406 commented Jul 5, 2022

This is a server side check, there is nothing you can do locally to change it. You may be able to change your projects to make it smaller, look at the folder created during publish to see if it has included things that are not needed.

If you want to publish a package that needs to be 16mb, contact the crates.io team to see if they can give you a limit increase. Discord or GitHub.

@weihanglo
Copy link
Member

Alternatively, you might want to email help@crates.io

rust-lang/crates.io#3649 (comment)

Close as it's a server side validation and can only lift on per crate request at this moment.

@weihanglo weihanglo closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

3 participants