Alex Crichton
f986edf4c7
Move test synchronization to tests, not in `wasm-pack`
...
In `wasm-pack` it can't do cross-process synchronization, and in tests
there's now multiple processes which need to be synchronized.
7 years ago
Alex Crichton
110d930351
Assert not only an error happens but the right error happens
...
Add message assertions to the various assertions in `test.rs`
7 years ago
Alex Crichton
c664cfddd1
Use a global cache for all downloaded binaries
...
This commit switches wasm-pack to using a global cache for all download
binaries, living typically in a user's home directory. The intention
here is to aovid creating a `bin` folder in all wasm-pack projects and
additionally share downloads between projects to ensure that you're
downloading a minimal number of binaries from the network.
Along the way the downloading code was restructured to support a global
cache, but everything should largely be as it was before!
Closes #292
7 years ago
Nick Fitzgerald
df4ef1f451
Merge pull request #424 from fitzgen/issue-422
...
Issue 422
7 years ago
Nick Fitzgerald
1bbc966240
Don't print stdout/stderr in error messages because we already pipe that to console when running the child process
...
Fixes #422
7 years ago
Nick Fitzgerald
b16660375e
Add "Error:" prefix to error messages
7 years ago
Nick Fitzgerald
352b47d732
Provide better error context for `cargo build`
7 years ago
Nick Fitzgerald
9218c65d07
Merge pull request #417 from fitzgen/issue-416
...
Add no-modules to --target flag's help text
7 years ago
Nick Fitzgerald
916a35ffcf
CI: run normal tests and cargo tests separately
7 years ago
Nick Fitzgerald
66223f1b25
CI: run tests single threadedly on hunch that cargo bug is due to interleaving
7 years ago
Nick Fitzgerald
7768f54d88
CI: use stable toolchain in appveyor
7 years ago
Nick Fitzgerald
604bcf1473
Pin appveyor to an older nightly until we figure out the cargo/rustc bug
7 years ago
Nick Fitzgerald
182c3931c3
Run cargo fmt
7 years ago
Nick Fitzgerald
0ca6d2475b
Update Cargo.lock
7 years ago
Nick Fitzgerald
965ae35933
Add no-modules to --target flag's help text
...
Fixes #416
7 years ago
Nick Fitzgerald
d689c50408
Merge pull request #412 from mstallmo/typo-fix
...
Fix typo in test function name for copying the README
7 years ago
Nick Fitzgerald
600d02b292
Merge pull request #408 from huangjj27/test-build-for-example
...
test(command/build): add a test for build command
7 years ago
Junjie Huang
29c19f8a40
Merge branch 'master' into test-build-for-example
7 years ago
huangjj27
c713477ac8
change for cargo_metadata
7 years ago
huangjj27
ee9116d2e0
bugfix(bindgen-target-dir): use PathBuf to join
...
the old code are hard coded path with "/", which may cause error
on windows, thus changing to use PathBuf.join.
fixing #414
7 years ago
Mason Stallmo
6426e23cbe
Fix typo in test function name for copying the README
7 years ago
huangjj27
ad62870f40
useing local wasm-bindgen
7 years ago
huangjj27
40a5fa2b74
test(command/build): add a test for build command
7 years ago
ashley williams
ceb4779723
Merge pull request #405 from rustwasm/website-update
...
feat(website): bump vers
7 years ago
Ashley Williams
7dfa6d631e
feat(website): bump vers
7 years ago
ashley williams
489a646912
Merge pull request #404 from rustwasm/0.5.1
...
v0.5.1
7 years ago
Ashley Williams
ed988871c4
v0.5.1
7 years ago
Nick Fitzgerald
60bdb80947
Merge pull request #401 from drager/return-failure-error
...
Return `Result<T, failure::Error>` instead of `Result<T, wasm_pack::error::Error>`
7 years ago
ashley williams
2ca946e833
Merge pull request #392 from fitzgen/child-process-and-output-management
...
Child process and output management
7 years ago
Jesper Håkansson
9404c1496d
chore: Run rustfmt
7 years ago
Jesper Håkansson
b7a84200a6
chore: Run rustfmt
7 years ago
Jesper Håkansson
0be4905e31
refactor: Return failure::Error instead of wasm_pack::error::Error
7 years ago
Jesper Håkansson
899f5e0ffc
refactor: Import self and use full module path for failure
...
Use full module path for failure to be consistent since
it's used like that in other modules.
7 years ago
Jesper Håkansson
e9e0fb3cba
refactor: Return failure::Error instead of wasm_pack::error::Error
7 years ago
Nick Fitzgerald
e9276e0aab
error: Add stdout to the `Error::Cli` variant
7 years ago
Nick Fitzgerald
1621d18072
child: Always print everything to our output
...
Also don't buffer the child's stdout and stderr.
7 years ago
ashley williams
921b7240ae
Merge pull request #394 from mstallmo/master
...
Change to INFO when alerting users about missing fields Cargo.toml
7 years ago
Mason Stallmo
78117ef4a1
Fix bad formating
7 years ago
Mason Stallmo
b82fa7db65
Combine filed missing messages into one INFO line
7 years ago
Mason Stallmo
e47af81f8f
Change to INFO when alerting users about missing fields in Cargo.toml
7 years ago
Nick Fitzgerald
2fa961d97d
Use `child::run` for spawning child processes everywhere
7 years ago
Nick Fitzgerald
4fd08dcbd2
test: Add a utility for creating null loggers for tests
7 years ago
Nick Fitzgerald
6e8e8a6cb2
Create a module for running child processes
7 years ago
Nick Fitzgerald
210bf075be
Merge pull request #387 from konstin/exit_status
...
Add exit_status to cli error to fix #291
7 years ago
konstin
514e5c6032
Add exit_status to cli error to fix #291
7 years ago
ashley williams
05151ead6d
Merge pull request #383 from alexcrichton/remove-nightly
...
Remove lingering forced nightly usages
7 years ago
Alex Crichton
17b385060f
Remove lingering forced nightly usages
...
These look to have been removed elsewhere, so seem to be left in by
mistake!
7 years ago
ashley williams
2b97d8fbb1
Merge pull request #381 from fitzgen/cargo-fmt
...
cargo fmt
7 years ago
Nick Fitzgerald
e1c8ca825d
cargo fmt
7 years ago
Alex Crichton
8e6cc1fc21
Merge pull request #378 from fitzgen/test-crate-suggestion
...
test: fix crate dependency suggestion
7 years ago