Skip to content

jyn514/example-analyzer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example-analyzer

Setup

git clone -b linked-examples https://github.com/willcrichton/rust
cd rust
./x.py --stage 1 build
export CUSTOM_RUSTDOC=$(pwd)/build/x86_64-apple-darwin/stage1/bin/rustdoc
cd ..
git clone https://github.com/willcrichton/example-analyzer
cd example_analyzer
rustup toolchain install nightly --profile default --component rustc-dev
rustup override set nightly
cargo build

Example

cd doctest
export DYLD_LIBRARY_PATH=$HOME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib:$DYLD_LIBRARY_PATH
../target/debug/example-analyzer
cargo clean && cargo doc -vv
# copy the command within Running `...` and:
# 1. replace rustdoc with $CUSTOM_RUSTDOC
# 2. add the flag "--call-locations .call_locations.json" to the end
# 3. run the command
open target/doc/doctest/index.html

Development

If you change the Rust repo (ie rustdoc) then run:

./x.py --stage 1 build
# also re-run the $CUSTOM_RUSTDOC command

If you change example-analyzer then run:

cargo build
../target/debug/example-analyzer
# also the $CUSTOM_RUSTDOC command

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%