Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Commit dd338da

Browse files
author
bors-servo
authored
Auto merge of #430 - asajeffrey:smup, r=jdm
Upgrade to SM 60 This is the mozjs_sys smup PR. Depends on servo/mozjs#138. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/430) <!-- Reviewable:end -->
2 parents 52f4d99 + 5e838f4 commit dd338da

27 files changed

+666
-696
lines changed

.travis.yml

+18-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
11
language: rust
2-
sudo: 9000
3-
dist: trusty
42
rust:
53
- nightly
4+
- beta
5+
- stable
6+
sudo: 9000
7+
dist: trusty
68
os:
79
- linux
810
- osx
11+
osx_image: xcode9.3
12+
13+
addons:
14+
apt:
15+
sources:
16+
- ubuntu-toolchain-r-test
17+
- llvm-toolchain-trusty-5.0
18+
packages:
19+
- autoconf2.13
20+
- g++-6
21+
- clang-5.0
922

1023
env:
1124
- FEATURES=""
1225
- FEATURES="--features debugmozjs"
1326

14-
before_install:
15-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install ccache yasm; fi
27+
before_script:
28+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CC=gcc-6; export CXX=g++-6; fi
29+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install [email protected] ccache yasm; fi
1630

1731
script:
1832
- ccache -z

Cargo.toml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "mozjs"
33
description = "Rust bindings to the Mozilla SpiderMonkey JavaScript engine."
44
repository = "https://github.com/servo/rust-mozjs"
5-
version = "0.7.2"
5+
version = "0.8.0"
66
authors = ["The Servo Project Developers"]
77
build = "build.rs"
88
license = "MPL-2.0"
@@ -31,6 +31,8 @@ name = "runtime"
3131
[[test]]
3232
name = "typedarray"
3333
[[test]]
34+
name = "typedarray_panic"
35+
[[test]]
3436
name = "stack_limit"
3537
[[test]]
3638
name = "vec_conversion"
@@ -40,11 +42,10 @@ doctest = false
4042

4143
[features]
4244
debugmozjs = ['mozjs_sys/debugmozjs']
43-
promises = ['mozjs_sys/promises']
4445

4546
[dependencies]
4647
lazy_static = "1"
4748
libc = "0.2"
4849
log = "0.4"
4950
num-traits = "0.2"
50-
mozjs_sys = "0.51.1"
51+
mozjs_sys = "0.60.0"

README.md

+1-27
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,4 @@ Rust bindings to SpiderMonkey
44

55
[Documentation](http://doc.servo.org/mozjs/)
66

7-
## Setting up your environment
8-
9-
### Rust
10-
11-
This project requires Rust nightly-2018-03-25 or greater.
12-
For installation of the Rust toolchain see [`https://rustup.rs/`](https://rustup.rs/).
13-
14-
### Other dependencies
15-
16-
#### macOS
17-
#### On macOS (Homebrew)
18-
19-
```sh
20-
brew install automake pkg-config python2 cmake yasm
21-
```
22-
23-
## Building the project
24-
25-
```sh
26-
cargo build
27-
```
28-
29-
## Testing the project
30-
31-
```sh
32-
cargo test
33-
```
7+
See https://github.com/servo/mozjs/blob/master/README.md for build instructions.

appveyor.yml

+8-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
version: 1.0.{build}
2+
image: Visual Studio 2017
23

34
environment:
45
# The appveyor image we use has a pretty huge set of things installed... we make the
@@ -25,9 +26,6 @@ environment:
2526
C:\\Program Files\\Git\\cmd;\
2627
C:\\Program Files\\Git\\usr\\bin;\
2728
C:\\Program Files\\AppVeyor\\BuildAgent;"
28-
RUST_BACKTRACE: "1"
29-
matrix:
30-
- TARGET: nightly-x86_64-pc-windows-msvc
3129

3230
# Uncomment to enable RDP & wait for exit. Connection info will be printed in the log.
3331
#init:
@@ -37,23 +35,22 @@ environment:
3735

3836
# called after cloning, before building
3937
install:
38+
- set BUILD_ENV=msvc
39+
- set TARGET=nightly-x86_64-pc-windows-msvc
4040
- ps: Start-FileDownload "http://servo-rust.s3.amazonaws.com/build/MozillaBuildSetup-2.2.0.exe"
4141
- ps: .\MozillaBuildSetup-2.2.0.exe /S | Out-Null
4242
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:TARGET}.exe" -FileName "rust-install.exe"
4343
- ps: .\rust-install.exe /VERYSILENT /NORESTART /DIR="C:\rust" | Out-Null
4444
- ps: $env:PATH="$env:PATH;C:\rust\bin"
45-
# I can't make this work with a multi-line script (e.g. via |+ etc.), so we copy the if before every command
46-
- if %TARGET:*-msvc=msvc%==msvc set BUILD_ENV=msvc
47-
- if %BUILD_ENV%==msvc call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat"
48-
- if %BUILD_ENV%==msvc copy C:\mozilla-build\yasm\yasm.exe C:\mozilla-build\msys\bin
49-
- if %BUILD_ENV%==msvc copy C:\mozilla-build\mozmake\mozmake.exe C:\mozilla-build\msys\bin
50-
- if %BUILD_ENV%==msvc set MOZTOOLS_PATH=C:\mozilla-build\msys\bin
51-
- if %BUILD_ENV%==msvc set NATIVE_WIN32_PYTHON=C:/Python27/python.exe
45+
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
46+
- set MOZTOOLS_PATH=C:\mozilla-build\msys\bin;C:\mozilla-build\mozmake;C:\mozilla-build\yasm
47+
- set NATIVE_WIN32_PYTHON=C:/Python27/python.exe
48+
- set AUTOCONF=C:/mozilla-build/msys/local/bin/autoconf-2.13
5249
- rustc -vV
5350
- cargo -vV
5451

5552
build_script:
5653
- echo PATH %PATH%
5754
- echo VSINSTALLDIR %VSINSTALLDIR%
5855
- echo MOZTOOLS_PATH %MOZTOOLS_PATH%
59-
- if %BUILD_ENV%==msvc cd %APPVEYOR_BUILD_FOLDER% && cargo build && cargo test
56+
- cd %APPVEYOR_BUILD_FOLDER% && cargo build --verbose --verbose && cargo test

build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn main() {
4444
} else {
4545
build.flag("-fPIC");
4646
build.flag("-fno-rtti");
47-
build.flag("-std=c++11");
47+
build.flag("-std=c++14");
4848
build.define("JS_NO_JSVAL_JSID_STRUCT_TYPES", "");
4949
build.flag("-include");
5050
build.flag(&confdefs_path.to_string_lossy());

etc/README

-44
This file was deleted.

etc/bindings-all.py

-84
This file was deleted.

etc/bindings.sh

-107
This file was deleted.

0 commit comments

Comments
 (0)