Skip to content

Replace nursery links with rust-lang links #222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ set -euxo pipefail

main() {
local tag=$(git ls-remote --tags --refs --exit-code \
https://github.com/rust-lang-nursery/mdbook \
https://github.com/rust-lang/mdbook \
| cut -d/ -f3 \
| grep -E '^v[0-9\.]+$' \
| sort --version-sort \
| tail -n1)

curl -LSfs https://japaric.github.io/trust/install.sh | \
sh -s -- --git rust-lang-nursery/mdbook --tag $tag
sh -s -- --git rust-lang/mdbook --tag $tag

pip install linkchecker --user
}
Expand Down
6 changes: 2 additions & 4 deletions ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ main() {
mdbook build
mdbook test

# FIXME(rust-lang-nursery/mdbook#789) remove `--ignore-url` when that bug is fixed
linkchecker --ignore-url "print.html" book
linkchecker book

# now check this as a directory of the bookshelf
rm -rf shelf
mkdir shelf
mv book shelf
# FIXME(rust-lang-nursery/mdbook#789) remove `--ignore-url` when that bug is fixed
linkchecker --ignore-url "print.html" shelf
linkchecker shelf

mv shelf/book .
rmdir shelf
Expand Down
2 changes: 1 addition & 1 deletion src/interoperability/c-with-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Rather than manually generating these interfaces, which may be tedious and error
`--ctypes-prefix=cty` and `Builder.use_core()` to make the generated code `#![no_std]` compatible.
4. `bindgen` will produce the generated Rust code to the output of the terminal window. This file may be piped to a file in your project, such as `bindings.rs`. You may use this file in your Rust project to interact with C/C++ code compiled and linked as an external library. Tip: don't forget to use the [`cty`](https://crates.io/crates/cty) crate if your types in the generated bindings are prefixed with `cty`.

[bindgen]: https://github.com/rust-lang-nursery/rust-bindgen
[bindgen]: https://github.com/rust-lang/rust-bindgen
[bindgen user's manual]: https://rust-lang.github.io/rust-bindgen/

## Building your C/C++ code
Expand Down