Releases: servo/mozjs
Releases · servo/mozjs
mozjs-sys-v0.140.0-5: Support build configurations without Intl API (#623)
* Support build configurations without Intl API The Intl API requires bundling a very large amount of data, and isn't needed in absolutely all environments. This commit introduces an `intl` feature, which is enabled by default on `mozjs`, and builds SpiderMonkey without Intl support if that feature is disabled. On MacOS, a mozjs embedding I'm working on shrinks from 32MB to 12MB, and a wasm32 build from also 32MB to 8.5MB (all stripped). Signed-off-by: Till Schneidereit <till@tillschneidereit.net> * Always build from source if intl feature is disabled Signed-off-by: Till Schneidereit <till@tillschneidereit.net> * Bump `mozjs-sys` version Signed-off-by: Till Schneidereit <till@tillschneidereit.net> --------- Signed-off-by: Till Schneidereit <till@tillschneidereit.net>
mozjs-sys-v0.140.0-4: Prepare mozjs-sys for publishing (#617)
* Update mozjs_sys publishing excludes Most of the previous folders don't exist anymore. `testing` is 60MiB uncompressed, so we don't want to ship that. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Prevent python bytecode cache Cargo will complain when publishing if the source directory is polluted during build. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Remove old-configure from makefile.cargo The file doesn't exist anymore, so we shouldn't touch it. This prevents cargo publish from complaining about failed package verification. Cargo will complain when publishing if the source directory is polluted during build. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Update authors for mozjs-sys Add the servo project developers to the authors. This should make it more clear that this is not an official mozilla crate. We don't remove Mozilla from the list, since they are the primary authors of spidermonkey, aka. the main content of this crate. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * filter repo instead of excluding on publish Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * bump version Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
mozjs-sys-v0.140.0-3: Add minimal bindings for `Handle<StackGCVector<T>>`. (#620)
* Add minimal bindings for Handle<StackGCVector<T>>. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Add unit test. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Add missing glue wrappers. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Avoid returning non-POD datatypes. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix build error. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Remove some raw handle usage. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix build error. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Detect gfind/find when generating wrappers. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Format. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
mozjs-sys-v0.140.0-2: Add Cargo Feature for zlib-rs (#619)
* Switched to Using zlib-rs Signed-off-by: Redfire <redfire75369@hotmail.com> * Added Cargo Feature for zlib-rs Signed-off-by: Redfire <redfire75369@hotmail.com> * Updated Patches for zlib-rs Signed-off-by: Redfire <redfire75369@hotmail.com> --------- Signed-off-by: Redfire <redfire75369@hotmail.com>
mozjs-sys-v0.140.0-1: Use cargo provided icu_capi (#596)
* Use Cargo provided icu_capi headers Use the headers provided by cargo, instead of our local checkout. This also revealed that we had been using version 1.5, when we wanted to use 1.4, to be in sync with upstream. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Remove unneeded vendored code Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * try patch Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * replace \ with / in path Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
mozjs-sys-v0.140.0-0: Upgrade to SpiderMonkey 140 (#607)
* Update SpiderMonkey Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Update patches. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Apply patches. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Update jsglue. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Update wrappers. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Update README. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Update package version. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Wrap new Dispatchable ownership in a layer of opaque pointers. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Upgrade NDK to 28b. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Format jsglue. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fetch mozjs source from github release. Reenable integrity check. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Update upgrade steps in README for new integrity job requirements. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Show git diff when integrity check fails. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Remove vendored jinja2 module. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Update jinja2 removal patch to use lowercase directory name. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Address review comments. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix documentation. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
mozjs-sys-v0.137.0-3: mozjs_sys: Honor the `CXXSTDLIB` environment variable (#615)
`CXXSTDLIB` is an environment variable used by `cc` and many other crates which lets developers to choose a standard C++ library of their choice. Make use of that variable in mozjs_sys's build.rs as well. One of the use cases is supporting Linux distributions which use LLVM instead of GCC as the main toolchain (e.g. Chimera, Gentoo musl-llvm profile, OpenMandriva). Signed-off-by: Michal Rostecki <vadorovsky@disroot.org>
mozjs-sys-v0.137.0-2: Remove unneeded icu_capi features (#608)
* Reduce icu_capi features We don't need all default features, which are quite a few: https://github.com/unicode-org/icu4x/blob/599f3366f901eb0cc0af9de6c9de99998734bb8a/ffi/capi/Cargo.toml#L38 Co-authored-by: Yao Jian <yaojian7@huawei.com> Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * windows: Link advapi32 Previously this seems to have been linked in by default (e.g. on Rust 1.85.0), and also by some optional feature in `icu_capi`. Since SM relies on this library, we need to link against it. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * fix duplicate space and bump mozjs The bump is needed to make integrity happy Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add icu_calender and icu_properties Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com> Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Co-authored-by: Yao Jian <yaojian7@huawei.com> Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
mozjs-sys-v0.137.0-1: fix icu_capi version (#606)
* fix icu_capi version The vendored version of icu_capi was bumped to 1.5.0 in the SM 137 update, so we need to update the version in the Cargo.toml too. Additionally, we use `=1.5.0` to force selecting the same version as the vendored one. The vendored icu_capi is never built, only its headers are used. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * bump mozjs-sys version Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
v140 source
Source code used for the SpiderMonkey 140 upgrade.