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

Version bump for crates.io #127

Merged
merged 1 commit into from Nov 2, 2017
Merged

Conversation

@fitzgen
Copy link
Member

fitzgen commented Nov 1, 2017

r? @asajeffrey


This change is Reviewable

@asajeffrey
Copy link
Member

asajeffrey commented Nov 1, 2017

I thought we were planning on using the SM version as the x in 0.x.y?

@fitzgen
Copy link
Member Author

fitzgen commented Nov 1, 2017

Yeah, once we actually have SMs that we know what version they came from. This was just the minimal thing we can publish given what's already on crates.io.

@fitzgen
Copy link
Member Author

fitzgen commented Nov 1, 2017

I guess the current SM is 50 here, I can make this 0.50.0

@fitzgen fitzgen force-pushed the fitzgen:publish-on-crates-io branch from ba713a9 to aad4424 Nov 1, 2017
@fitzgen
Copy link
Member Author

fitzgen commented Nov 1, 2017

Ok, this is 0.50.0

@asajeffrey
Copy link
Member

asajeffrey commented Nov 2, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Nov 2, 2017

📌 Commit aad4424 has been approved by asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented Nov 2, 2017

Testing commit aad4424 with merge 9290ed0...

bors-servo added a commit that referenced this pull request Nov 2, 2017
Version bump for crates.io

r? @asajeffrey

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/mozjs/127)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 2, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: asajeffrey
Pushing 9290ed0 to master...

@bors-servo bors-servo merged commit aad4424 into servo:master Nov 2, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@fitzgen fitzgen deleted the fitzgen:publish-on-crates-io branch Nov 2, 2017
@fitzgen
Copy link
Member Author

fitzgen commented Nov 2, 2017

$ cargo publish
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Packaging mozjs_sys v0.50.0 (file:///home/fitzgen/mozjs)
   Verifying mozjs_sys v0.50.0 (file:///home/fitzgen/mozjs)
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling pkg-config v0.3.9
   Compiling libc v0.2.33
   Compiling mozjs_sys v0.50.0 (file:///home/fitzgen/mozjs/target/package/mozjs_sys-0.50.0)
   Compiling cc v1.0.3
   Compiling libz-sys v1.0.18
    Finished dev [unoptimized + debuginfo] target(s) in 57.98 secs
   Uploading mozjs_sys v0.50.0 (file:///home/fitzgen/mozjs)
error: api errors: this crate exists but you don't seem to be an owner. If you believe this is a mistake, perhaps you need to accept an invitation to be an owner before publishing.

cc @SimonSapin ^

@SimonSapin
Copy link
Member

SimonSapin commented Nov 2, 2017

@fitzgen I think crates.io recently started to require you to accept being added. Is something visible on https://crates.io/dashboard?

@fitzgen
Copy link
Member Author

fitzgen commented Nov 2, 2017

Huh. I don't see anything there, or in my inbox.

@fitzgen
Copy link
Member Author

fitzgen commented Nov 2, 2017

@fitzgen
Copy link
Member Author

fitzgen commented Nov 2, 2017

Thanks @SimonSapin !

@KiChjang
Copy link
Member

KiChjang commented Nov 2, 2017

Well, would you take a look at this...

LC02NP4XNG3QC:mozjs keithyeung$ rustup run nightly cargo publish
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Packaging mozjs_sys v0.50.0 (file:///Users/keithyeung/Workspace/mozjs)
   Verifying mozjs_sys v0.50.0 (file:///Users/keithyeung/Workspace/mozjs)
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling mozjs_sys v0.50.0 (file:///Users/keithyeung/Workspace/mozjs/target/package/mozjs_sys-0.50.0)
   Compiling pkg-config v0.3.9
   Compiling libc v0.2.33
   Compiling cc v1.0.3
   Compiling libz-sys v1.0.18
    Finished dev [unoptimized + debuginfo] target(s) in 153.39 secs
   Uploading mozjs_sys v0.50.0 (file:///Users/keithyeung/Workspace/mozjs)
error: api errors: max upload size is: 10485760
@SimonSapin
Copy link
Member

SimonSapin commented Nov 2, 2017

Are there files in the repo like tests that aren’t used for cargo build and that we could exclude from crates.io tarballs?

@SimonSapin
Copy link
Member

SimonSapin commented Nov 2, 2017

Is ICU optional? Does Servo enable it?

40M	mozjs/js/src/tests
35M	mozjs/js/src/jit-test
11M	mozjs/js/src/octane
55M	mozjs/intl/icu
10M	mozjs/config/external/icu
@fitzgen
Copy link
Member Author

fitzgen commented Nov 2, 2017

I'm working on adding excludes to Cargo.toml.

ICU is optional to build, but necessary for some web/js APIs as I understand it.

We can bump the crates.io size limit in special cases, after investigating what we can do to slim the package down.

@SimonSapin
Copy link
Member

SimonSapin commented Nov 2, 2017

Perhaps ICU could be a separate crate?

@fitzgen
Copy link
Member Author

fitzgen commented Nov 2, 2017

Perhaps. I'm unsure if the vendored m-c ICU has any patches or not, and whether SM will build with a system/non-vendored ICU.

@asajeffrey
Copy link
Member

asajeffrey commented Nov 3, 2017

Oh rats. Nearly there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.