Skip to content

Commit

Permalink
Merge #280
Browse files Browse the repository at this point in the history
280: edit README r=RalfJung a=RalfJung

@roblabla does this look reasonable?

Co-authored-by: Ralf Jung <[email protected]>
  • Loading branch information
bors[bot] and RalfJung authored Mar 13, 2020
2 parents ec3cc3a + 26cf464 commit efa6d8f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,13 @@ dependencies in the Xargo.toml file as you would do with Cargo.toml:
[utest]: https://github.com/japaric/utest

``` toml
# First build some standard crates.
[dependencies.alloc]
[dependencies.panic_abort]
[dependencies.panic_unwind]

# Then build our custom facade. It (implicitly) requires the crates above to
# already be in the sysroot, so we need to set the `stage`.
[dependencies.std]
git = "https://github.com/rust3ds/ctru-rs"
stage = 1
Expand All @@ -318,7 +321,12 @@ do intrusive changes to every transitive dependency.
path = "path/to/custom/libc"
```

## Check-only sysroot build
Notice that you should not list patched crates as `[dependencies]`!
`[dependencies]` determines which crates are built in the first place; `[patch]`
lets you replace some of their (transitive) dependencies with your own choice.
Having a crate listed in both will likely lead to crate duplication.

### Check-only sysroot build

Xargo supports performing a 'check build' of the syroot
via the `xargo-check` command. This command is invoked exactly
Expand Down

0 comments on commit efa6d8f

Please sign in to comment.