Nick Fitzgerald
0e09b3fd3c
Refactor: make `write_package_json` a method on `CargoManifest`
7 years ago
Nick Fitzgerald
511e6c29a0
Refactor: replace `manifest::read_cargo_toml` with a constructor
7 years ago
Nick Fitzgerald
4e6abcfd1d
Only read the `Cargo.toml` manifest once
...
And then keep reusing what we read, instead of re-reading it again.
Fixes #25
7 years ago
Jesper Håkansson
fa68a0d91f
test: Create and return tarball in tests, add more test cases
7 years ago
Nick Fitzgerald
dac12d3e34
Merge pull request #426 from alexcrichton/home-dir-cache
...
Use a global cache for all downloaded binaries
7 years ago
Jesper Håkansson
98b405c366
refactor: Use env::temp_dir() instead of current_dir() for tests
7 years ago
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
Jesper Håkansson
d5faedd200
test: Add initial tests for exposed functions in lib
7 years ago
Jesper Håkansson
10080c2794
fix: not(target_os = "windows")
7 years ago
Jesper Håkansson
37dac09ce5
test: More tests for path functions as well as minor fixes
7 years ago
Nick Fitzgerald
df4ef1f451
Merge pull request #424 from fitzgen/issue-422
...
Issue 422
7 years ago
Jesper Håkansson
70df15fcca
test: Rework and rename path tests
7 years ago
Jesper Håkansson
8150ba39fb
chore: Run cargo update
7 years ago
Jesper Håkansson
57e00f844f
Merge branch 'master' into refactor-binary-installation
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
Jesper Håkansson
69ee13b3b3
test: Add tests for path functions
7 years ago
Jesper Håkansson
65d060cfc4
chore: Run latest rustfmt
7 years ago
Jesper Håkansson
23e902bd7e
Merge branch 'master' into refactor-binary-installation
7 years ago
Jesper Håkansson
16a169bd52
fix: Exclude target so tests works
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
Jesper Håkansson
ac70220610
Remove authors from binary-install Cargo.toml
7 years ago
Jesper Håkansson
a4b29a9293
refactor: Move binary installation to it's own crate
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