Skip to content

Tags: servo/mozjs

Tags

mozjs-sys-v0.140.5-3

Toggle mozjs-sys-v0.140.5-3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add default feature for JIT (#589)

When building servo on Linux with the profile `production-stripped`,
disabling JIT with this change shaves off 9MiB from the servo binary
size, which is around 10%.

Signed-off-by: Jonathan Schwender <[email protected]>

mozjs-sys-v0.140.5-2

Toggle mozjs-sys-v0.140.5-2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixup global method on realm and add reborrow variant (#657)

* currentglobal

Signed-off-by: sagudev <[email protected]>

* wrappers2

Signed-off-by: sagudev <[email protected]>

* fmt

Signed-off-by: sagudev <[email protected]>

* Apply suggestions from code review

Co-authored-by: Josh Matthews <[email protected]>
Signed-off-by: Sam <[email protected]>

---------

Signed-off-by: sagudev <[email protected]>
Signed-off-by: Sam <[email protected]>
Co-authored-by: Josh Matthews <[email protected]>

mozjs-sys-v0.140.5-1

Toggle mozjs-sys-v0.140.5-1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
build: Remove deprecated static_flag(true) call. (#651)

This method has been deprecated in cc-rs, since cc-rs
will only build static libraries. See the deprecation notice
in the latest version:
https://docs.rs/cc/latest/cc/struct.Build.html#method.static_flag

Signed-off-by: Jonathan Schwender <[email protected]>

mozjs-sys-v0.140.5-0

Toggle mozjs-sys-v0.140.5-0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update to SpiderMonkey 140.5 (#644)

* fix patch

Signed-off-by: sagudev <[email protected]>

* Update SpiderMonkey

Signed-off-by: sagudev <[email protected]>

* apply patches

Signed-off-by: sagudev <[email protected]>

* Update COMMIT and version

Signed-off-by: sagudev <[email protected]>

* update bindgen

this change fixes formating

Signed-off-by: sagudev <[email protected]>

* plz do not crash

Signed-off-by: sagudev <[email protected]>

---------

Signed-off-by: sagudev <[email protected]>

mozjs-source-26eff341874075f35c3daa42b8e29fa54ff62972

Toggle mozjs-source-26eff341874075f35c3daa42b8e29fa54ff62972's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add safe JSContext wrapper with strict safety rules (#638)

* squash

Signed-off-by: sagudev <[email protected]>

* run doc test on linux

Signed-off-by: sagudev <[email protected]>

---------

Signed-off-by: sagudev <[email protected]>

mozjs-sys-v0.140.0-8

Toggle mozjs-sys-v0.140.0-8's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Keep icu_capi headers in SM (#639)

* Keep icu_capi headers

Signed-off-by: sagudev <[email protected]>

* Apply

Signed-off-by: sagudev <[email protected]>

* bump mozjs-sys

Signed-off-by: sagudev <[email protected]>

---------

Signed-off-by: sagudev <[email protected]>

mozjs-sys-v0.140.0-7

Toggle mozjs-sys-v0.140.0-7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix `icu_capi` detection (#633)

* Fix `icu_capi` detection

#623 made `icu_capi` optional, which broke the build of servo
with vendored dependencies.
We need to explicitly add the `intl` feature when invoking cargo metadata, otherwise the feature will not be enabled
in the vendored crate directory when cargo metadata is run.

Signed-off-by: Jonathan Schwender <[email protected]>

* Update comment

Signed-off-by: Jonathan Schwender <[email protected]>

* Bump mozjs-sys version

Signed-off-by: Jonathan Schwender <[email protected]>

---------

Signed-off-by: Jonathan Schwender <[email protected]>

mozjs-sys-v0.140.0-6

Toggle mozjs-sys-v0.140.0-6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Support building for Wasm/WASI (#624)

* Support building for Wasm/WASI

This commit changes the `build.rs` and `makefile.cargo` files to support compiling mozjs for `wasm32-wasip1` and `wasm32-wasip2`. SpiderMonkey itself has long supported targeting WASI, but the build system requires some finagling to line everything up just right for these targets.

It also frobs things a little bit to make tests pass (disabling the one test that uses threads and thus isn't supported at all on wasm32-wasi right now.)

Signed-off-by: Till Schneidereit <[email protected]>

* Fix formatting

Signed-off-by: Till Schneidereit <[email protected]>

* Add CI for WASIp1 and WASIp2 targets

Signed-off-by: Till Schneidereit <[email protected]>

* Fix examples build

Apparently Rust 1.85 needs more `cfg` than the newer version I tested with.

Signed-off-by: Till Schneidereit <[email protected]>

* CI fixes

Signed-off-by: Till Schneidereit <[email protected]>

* Try to avoid GH Actions env var escaping

Signed-off-by: Till Schneidereit <[email protected]>

* GH Actions really wants to escape env vars

Signed-off-by: Till Schneidereit <[email protected]>

* Use libz if crosscompiling with sysroot

Signed-off-by: sagudev <[email protected]>

* WASI in CI with default features

Signed-off-by: sagudev <[email protected]>

---------

Signed-off-by: Till Schneidereit <[email protected]>
Signed-off-by: sagudev <[email protected]>
Co-authored-by: sagudev <[email protected]>

mozjs-sys-v0.140.0-5

Toggle mozjs-sys-v0.140.0-5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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 <[email protected]>

* Always build from source if intl feature is disabled

Signed-off-by: Till Schneidereit <[email protected]>

* Bump `mozjs-sys` version

Signed-off-by: Till Schneidereit <[email protected]>

---------

Signed-off-by: Till Schneidereit <[email protected]>

mozjs-sys-v0.140.0-4

Toggle mozjs-sys-v0.140.0-4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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 <[email protected]>

* Prevent python bytecode cache

Cargo will complain when publishing if the source directory
is polluted during build.

Signed-off-by: Jonathan Schwender <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* filter repo instead of excluding on publish

Signed-off-by: Jonathan Schwender <[email protected]>

* bump version

Signed-off-by: Jonathan Schwender <[email protected]>

---------

Signed-off-by: Jonathan Schwender <[email protected]>