Commit Graph

2455 Commits

Author SHA1 Message Date
Alex Crichton
79a8c5d27c
Merge pull request #1325 from rustwasm/dependabot/npm_and_yarn/@wasm-tool/wasm-pack-plugin-0.2.5
Update @wasm-tool/wasm-pack-plugin requirement from 0.2.3 to 0.2.5
2019-03-07 09:02:38 -06:00
dependabot[bot]
e817780172
Update @wasm-tool/wasm-pack-plugin requirement from 0.2.3 to 0.2.5
Updates the requirements on [@wasm-tool/wasm-pack-plugin](https://github.com/wasm-tool/wasm-pack-plugin) to permit the latest version.
- [Release notes](https://github.com/wasm-tool/wasm-pack-plugin/releases)
- [Commits](https://github.com/wasm-tool/wasm-pack-plugin/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-07 08:14:43 +00:00
Alex Crichton
17bd1969b6
Merge pull request #1323 from alexcrichton/bump-walrus
Update walrus to 0.5.0
2019-03-06 22:34:28 -06:00
Alex Crichton
795bf7c6b1 Update walrus to 0.5.0 2019-03-06 15:09:20 -08:00
Alex Crichton
eaaf3461bd
Merge pull request #1321 from ibaryshnikov/master
Fixed typo in .slice for typed arrays
2019-03-06 15:22:43 -06:00
ibaryshnikov
fa0a3610af issue-1317-typed-array-typo-fixed 2019-03-06 22:12:48 +03:00
Alex Crichton
e84b327306 Fix a dead link in new example
Closes #1319
2019-03-06 08:01:03 -08:00
Alex Crichton
9f6c2a6125
Merge pull request #1314 from alexcrichton/typescript-tests
Start testing TypeScript output on CI
2019-03-05 17:20:00 -06:00
Alex Crichton
20c25ca922
Merge pull request #1295 from alexcrichton/js-snippets
Implement the local JS snippets RFC
2019-03-05 17:18:04 -06:00
Alex Crichton
d6e3770350 Scope snippets within a crate
Use the same crate identifier for manually included snippets as well as
inline snippets to help with debugging.
2019-03-05 14:53:14 -08:00
Alex Crichton
c463cc96df Clean up the super long finalize function 2019-03-05 14:40:05 -08:00
Alex Crichton
f3935cc44f Enable special env vars for Windows CI on webidl tests 2019-03-05 14:12:29 -08:00
Alex Crichton
bdf98f3a11 Fixup some documentation 2019-03-05 12:32:40 -08:00
Alex Crichton
f3f3ebee3a Remove unsafe usage in backend/src/encode.rs
Using `unsafe` was just a little too eager there so let's use an
off-the-shelf solution for solving the actual problem we have, which is
to allocate strings with a lifetime of `Interner` rather than
deduplicating strings.
2019-03-05 12:28:14 -08:00
Alex Crichton
93a1301c9f Don't explicitly hide _INCLUDED_FILES
It's already hidden from docs!
2019-03-05 12:17:42 -08:00
Alex Crichton
95ab24a4e2 Try to reduce spurious failures on Windows 2019-03-05 12:14:15 -08:00
Nick Fitzgerald
59e88449b8
Update examples/without-a-bundler/index.html
Co-Authored-By: alexcrichton <alex@alexcrichton.com>
2019-03-05 12:30:47 -06:00
Nick Fitzgerald
6c86d23836
Update examples/without-a-bundler-no-modules/README.md
Co-Authored-By: alexcrichton <alex@alexcrichton.com>
2019-03-05 12:30:38 -06:00
Alex Crichton
bdcfcb49b1 Log webdriver command we execute 2019-03-05 09:33:22 -08:00
Alex Crichton
235bc7c889 Start testing TypeScript output on CI
This commit starts to add some simple tests for our TypeScript output of
the wasm-bindgen CLI, currently just running `tsc` to make sure syntax
looks good and types are emitted as expected. This'll hopefully be able
to get expanded over time with bug reports as they come in as well as
ensure that we don't regress anything in egregious manners!

Closes #922
2019-03-05 08:57:52 -08:00
Alex Crichton
9063a6b701 Get WebIDL tests working 2019-03-05 08:14:55 -08:00
Alex Crichton
f1e391e3db Attempt to debug geckodriver spurious failures on Windows 2019-03-05 08:14:01 -08:00
Alex Crichton
33494a25ad Fix import_js example 2019-03-05 08:00:47 -08:00
Alex Crichton
20f1e503d3 Fix the webidl-tests crate 2019-03-05 08:00:47 -08:00
Alex Crichton
5de3189411 Fix js-sys and web-sys tests 2019-03-05 08:00:47 -08:00
Alex Crichton
7e62aff1ce Fix a case where snippet is specified twice
When importing a file across multiple locations in a module make sure it
doesn't trip an assert and it works as expected.
2019-03-05 08:00:47 -08:00
Alex Crichton
6283169a30 Paths are relative to CARGO_MANIFEST_DIR
The cwd is different for workspaces, so use the manifest env var
instead.
2019-03-05 08:00:47 -08:00
Alex Crichton
b762948456 Implement the local JS snippets RFC
This commit is an implementation of [RFC 6] which enables crates to
inline local JS snippets into the final output artifact of
`wasm-bindgen`. This is accompanied with a few minor breaking changes
which are intended to be relatively minor in practice:

* The `module` attribute disallows paths starting with `./` and `../`.
  It requires paths starting with `/` to actually exist on the filesystem.
* The `--browser` flag no longer emits bundler-compatible code, but
  rather emits an ES module that can be natively loaded into a browser.

Otherwise be sure to check out [the RFC][RFC 6] for more details, and
otherwise this should implement at least the MVP version of the RFC!
Notably at this time JS snippets with `--nodejs` or `--no-modules` are
not supported and will unconditionally generate an error.

[RFC 6]: https://github.com/rustwasm/rfcs/pull/6

Closes #1311
2019-03-05 08:00:47 -08:00
Alex Crichton
f161717afe Try another github connection for next release 2019-03-04 13:47:25 -08:00
Alex Crichton
3034523d39 Fix azure pipelines syntax 2019-03-04 13:39:09 -08:00
Alex Crichton
d8ac6e074b Only publish github release on tags 2019-03-04 13:38:25 -08:00
Alex Crichton
0f6e62a09b Fix publicatin to github 2019-03-04 13:12:39 -08:00
Alex Crichton
688bc29e44
Merge pull request #1310 from alexcrichton/bump
Bump to 0.2.38
2019-03-04 11:53:56 -06:00
Alex Crichton
86c6331e14 Fix a bug in azure pipelines config 2019-03-04 09:39:15 -08:00
Alex Crichton
a659f27c07 Bump to 0.2.38 2019-03-04 09:11:23 -08:00
Alex Crichton
1116af4450
Merge pull request #1309 from dlrobertson/master
Update tests after nightly fix
2019-03-04 09:52:25 -06:00
Alex Crichton
fe604d401d Remove outdated badges 2019-03-04 07:46:49 -08:00
Alex Crichton
407f4e294b
Merge pull request #1308 from johnterickson/master
Add build badge for Azure Pipelines
2019-03-04 09:46:02 -06:00
Dan Robertson
7ad5426714
Update tests after nightly fix 2019-03-04 02:14:57 +00:00
John Erickson
ea5e5269a9 Add build badge for Azure Pipelines 2019-03-01 19:56:33 -08:00
Nick Fitzgerald
ba84db5007
Merge pull request #1281 from fitzgen/new-fn-once
Add support for `FnOnce` to `Closure<T>`
2019-03-01 14:30:19 -08:00
Nick Fitzgerald
b5a8e98355 Ensure we always use a node version with Array#values 2019-03-01 14:16:03 -08:00
Nick Fitzgerald
43a05d682d Do run doctests for wasm-bindgen
We just `no_run` things, but make sure that they still compile.
2019-03-01 13:18:48 -08:00
Nick Fitzgerald
2ce57a7fa1 Add support for FnOnce to Closure 2019-03-01 13:18:48 -08:00
Alex Crichton
1299a2086f
Merge pull request #1307 from alexcrichton/fix-name
Fix name of "current thread ID" intrinsic
2019-03-01 12:48:53 -06:00
Alex Crichton
dad0de4f8b Work around a nightly regression 2019-03-01 10:48:03 -08:00
Alex Crichton
1031d9dea6 Work around rust-lang/rust#58853 2019-03-01 10:47:27 -08:00
Alex Crichton
5db467fc2d
Merge pull request #1300 from rustwasm/azure-pipelines
Switch CI to Azure Pipelines
2019-03-01 12:29:56 -06:00
Alex Crichton
9ac8a974a9 Fix name of "current thread ID" intrinsic
This was accidentally renamed in the transition to `walrus`, but
upstream rust-lang/rust still uses the old name so let's switch back to
that.
2019-03-01 09:22:30 -08:00
Nick Fitzgerald
18440a562e
Merge pull request #1306 from alexcrichton/encode-into-shared
Fix `passStringToWasm` with shared memory
2019-02-28 15:28:22 -08:00