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
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
Alex Crichton
233525d7d6
Fix passStringToWasm
with shared memory
...
Looks like `TextEncoder#encodeInto` isn't compatible when the buffer
passed in is backed by a `SharedArrayBuffer`, so if the module has a
shared thread skip the `encodeInto` optimization entirely.
2019-02-28 14:58:10 -08:00
Alex Crichton
c62f6529d8
Merge pull request #1304 from alexcrichton/fix-init
...
Fix a `__wbindgen_placeholder__` module leaking through
2019-02-28 13:39:56 -06:00
Alex Crichton
da168dc7f5
Merge pull request #1302 from tyleranton/export-comments-ts
...
Add doc comments export for typescript
2019-02-28 09:34:11 -06:00
Alex Crichton
c4c0fea05e
Fix a __wbindgen_placeholder__
module leaking through
...
With #1267 now fixed looks like we had an accidental regression sneak
through in the meantime!
2019-02-28 07:32:30 -08:00
Tyler Anton
59825c6d01
Add doc comments export for typescript
2019-02-27 20:09:28 +00:00
Alex Crichton
377d75c2c3
Switch CI to Azure Pipelines
...
This commit switches CI for the wasm-bindgen repository from a mixture
of Travis and AppVeyor to Azure Pipelines. One of the main reasons for
this was for me to personally get familiar with Azure Pipelines, but
after finishing it I think that this'd be a good transition for this
repository anyway.
With azure pipelines we're able to get more parallelism (10 vs the 3 on
Travis plus 1 on AppVeyor) as well as house all configuration in the
same location for one service (Azure Pipelines covers all 3 major
platforms).
I've tested this a good deal on my own personal repository as well, and
I believe that this is a lossless representation of our current CI,
releases and all!
2019-02-27 11:00:24 -08:00
Alex Crichton
cb432be5df
Merge pull request #1296 from rustwasm/dependabot/cargo/scoped-tls-1.0
...
Update scoped-tls requirement from 0.1 to 1.0
2019-02-27 10:45:01 -06:00
Alex Crichton
46955735d9
Merge pull request #1298 from LegNeato/fix_high_sierra
...
Fix headless test runner on macOS High Sierra
2019-02-27 09:32:42 -06:00
Alex Crichton
96d8dcf661
Merge pull request #1299 from fitzgen/contraction-not-acronym
...
"Wasm" is a contraction, not an acronym
2019-02-27 09:31:00 -06:00
Christian Legnitto
e80b0ccdc2
Fix headless test runner on macOS High Sierra
2019-02-26 21:06:45 -07:00
Nick Fitzgerald
b3f778096f
"Wasm" is a contraction, not an acronym
...
https://webassembly.github.io/spec/core/intro/introduction.html#wasm
2019-02-26 15:55:09 -08:00
Alex Crichton
860612485d
Merge pull request #1279 from alexcrichton/encode-into
...
Add support for `TextEncoder#encodeInto`
2019-02-26 12:29:56 -06:00