Skip to content

Commit

Permalink
Release v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Apr 24, 2016
1 parent 2e02d5f commit 9ba5058
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 29 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
### v0.1.2 - 2016-04-24

#### Added

- Xargo now uses file locking and can be executed concurrently.
- Xargo now print its current status to the console while building a sysroot.
- Xargo now reports errors to the console instead of panicking.

#### Removed

- Logging via `RUST_LOG` has been removed now that Xargo prints its status to the console.

### v0.1.1 - 2016-04-10

- Initial release
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords = ["cli", "cross", "compilation", "custom", "target"]
license = "MIT OR Apache-2.0"
name = "xargo"
repository = "https://github.com/japaric/xargo"
version = "0.1.1"
version = "0.1.2"

[dependencies]
cargo = "0.10.0"
Expand Down
29 changes: 2 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,35 +30,10 @@ The magic happens when you call `xargo` with the `--target` flag. In that case,
care of building a sysroot with cross compiled crates and calling `cargo build` with the appropriate
`RUSTFLAGS` variable. Example below:

```
$ git clone https://github.com/japaric/cu
$ cd cu
$ RUST_LOG=xargo xargo build --target stm32f100 --verbose
INFO:xargo: target: stm32f100
INFO:xargo::sysroot: rustc is a nightly from: 2016-03-25
INFO:xargo::sysroot: fetching source tarball
INFO:xargo::sysroot: unpacking source tarball
INFO:xargo::sysroot: cross compiling crates
INFO:xargo::sysroot: calling: "cargo" "build" "--release" "--target" "stm32f100" "-p" "collections" "-p" "rand"
INFO:xargo::sysroot:
Compiling core v0.0.0 (file:///home/japaric/.xargo/src/libcore)
Compiling alloc v0.0.0 (file:///home/japaric/.xargo/src/liballoc)
Compiling rustc_unicode v0.0.0 (file:///home/japaric/.xargo/src/librustc_unicode)
Compiling rand v0.0.0 (file:///home/japaric/.xargo/src/librand)
Compiling collections v0.0.0 (file:///home/japaric/.xargo/src/libcollections)
INFO:xargo::sysroot: symlinking host crates
Compiling rlibc v1.0.0
Running `rustc (...) --sysroot /home/japaric/.xargo`
Compiling compiler-rt v0.1.0 (file:///home/japaric/tmp/cu/compiler-rt)
Running `rustc (...) --sysroot /home/japaric/.xargo`
Compiling cu v0.1.0 (file:///home/japaric/tmp/cu)
Running `rustc src/lib.rs (...) --sysroot /home/japaric/.xargo`
(...)
```
![Screenshot](http://i.imgur.com/pUIfnwu.jpg)

`xargo` will cache the sysroot, so you can use it across different Cargo projects without having to
build the sysroot for each project. `xargo` will also take care of rebuilding the sysroot when
build a sysroot for each project. `xargo` will also take care of rebuilding the sysroot when
`rustc` is updated or when the target specification file is modified.

## Caveats
Expand Down

0 comments on commit 9ba5058

Please sign in to comment.