Nick Fitzgerald
0bb4fc4352
Merge pull request #433 from fitzgen/update-mdbook
...
deps: Update mdbook version we use to build the book
7 years ago
Nick Fitzgerald
400cfba7c1
Merge pull request #431 from fitzgen/stop-reading-cargo-toml-many-times
...
Stop reading cargo toml many times
7 years ago
Nick Fitzgerald
91e3de352b
Merge pull request #432 from fitzgen/name-field-for-ci-jobs
...
CI: Use `name` field for Travis CI jobs
7 years ago
Nick Fitzgerald
4d3c97de05
deps: Update mdbook version we use to build the book
7 years ago
Nick Fitzgerald
098eb33cea
Run cargo fmt
7 years ago
Nick Fitzgerald
f63abe0c8a
CI: Also log the rustfmt version
7 years ago
Nick Fitzgerald
8a59cf2956
CI: Use `name` field for Travis CI jobs
7 years ago
Nick Fitzgerald
6d3e9dfebb
Refactor: make `check_crate_config` a method of `CargoManifest`
7 years ago
Nick Fitzgerald
25490301e0
Refactor: make `get_crate_name` a method of `CargoManifest`
7 years ago
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
Nick Fitzgerald
dac12d3e34
Merge pull request #426 from alexcrichton/home-dir-cache
...
Use a global cache for all downloaded binaries
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
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