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

Upgrade to SM 60 #430

Merged
merged 2 commits into from
Aug 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
language: rust
sudo: 9000
dist: trusty
rust:
- nightly
- beta
- stable
sudo: 9000
dist: trusty
os:
- linux
- osx
osx_image: xcode9.3

addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- autoconf2.13
- g++-6
- clang-5.0

env:
- FEATURES=""
- FEATURES="--features debugmozjs"

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

script:
- ccache -z
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
name = "mozjs"
description = "Rust bindings to the Mozilla SpiderMonkey JavaScript engine."
repository = "https://github.com/servo/rust-mozjs"
version = "0.7.2"
version = "0.8.0"
authors = ["The Servo Project Developers"]
build = "build.rs"
license = "MPL-2.0"
@@ -31,6 +31,8 @@ name = "runtime"
[[test]]
name = "typedarray"
[[test]]
name = "typedarray_panic"
[[test]]
name = "stack_limit"
[[test]]
name = "vec_conversion"
@@ -40,11 +42,10 @@ doctest = false

[features]
debugmozjs = ['mozjs_sys/debugmozjs']
promises = ['mozjs_sys/promises']

[dependencies]
lazy_static = "1"
libc = "0.2"
log = "0.4"
num-traits = "0.2"
mozjs_sys = "0.51.1"
mozjs_sys = "0.60.0"
28 changes: 1 addition & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -4,30 +4,4 @@ Rust bindings to SpiderMonkey

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

## Setting up your environment

### Rust

This project requires Rust nightly-2018-03-25 or greater.
For installation of the Rust toolchain see [`https://rustup.rs/`](https://rustup.rs/).

### Other dependencies

#### macOS
#### On macOS (Homebrew)

```sh
brew install automake pkg-config python2 cmake yasm
```

## Building the project

```sh
cargo build
```

## Testing the project

```sh
cargo test
```
See https://github.com/servo/mozjs/blob/master/README.md for build instructions.
19 changes: 8 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version: 1.0.{build}
image: Visual Studio 2017

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

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

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

build_script:
- echo PATH %PATH%
- echo VSINSTALLDIR %VSINSTALLDIR%
- echo MOZTOOLS_PATH %MOZTOOLS_PATH%
- if %BUILD_ENV%==msvc cd %APPVEYOR_BUILD_FOLDER% && cargo build && cargo test
- cd %APPVEYOR_BUILD_FOLDER% && cargo build --verbose --verbose && cargo test
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ fn main() {
} else {
build.flag("-fPIC");
build.flag("-fno-rtti");
build.flag("-std=c++11");
build.flag("-std=c++14");
build.define("JS_NO_JSVAL_JSID_STRUCT_TYPES", "");
build.flag("-include");
build.flag(&confdefs_path.to_string_lossy());
44 changes: 0 additions & 44 deletions etc/README

This file was deleted.

84 changes: 0 additions & 84 deletions etc/bindings-all.py

This file was deleted.

107 changes: 0 additions & 107 deletions etc/bindings.sh

This file was deleted.

Loading