servo / rust-mozjs

DEPRECATED - moved to servo/mozjs instead.
Mozilla Public License 2.0
293 stars 122 forks source link

Publish on crates.io #376

Closed asajeffrey closed 6 years ago

asajeffrey commented 6 years ago

It would be nice to play well with the Rust ecosystem. This is a blocker to publishing anything that depends on mozjs, e.g. https://github.com/asajeffrey/josephine/issues/35

cc: @jdm @tschneidereit @fitzgen @nox

asajeffrey commented 6 years ago

It doesn't help matters that there's already a js crate, so we need to rename to mozjs before we publish.

One possible plan is to fork rust-mozjs, do the renaming in the fork, and publish from there. Then we can point servo at the published version, and merge the fork back into master.

As @nox said in https://github.com/asajeffrey/josephine/issues/35#issuecomment-338815779, we should probably adopt an 0.0.x versioning scheme while we're at it, so the first published version of mozjs_sys would be 0.0.50.

Should rust-mozjs use the same version numbers as mozjs_sys? We might publish them more often, perhaps use 0.x.y (e.g. the first rust-mozjs would be 0.50.0)? Should we try to use the same versioning scheme for mozjs_sys and mozjs?