Rust Tooling (October 2015)

Rust Tooling (October 2015)

What tools are available for Rust development?
This talk gives you an overview of ways to help you write better Rust code.

Ed9e9992fe069a0d3de05b69d8d187c3?s=128

Matthias Endler

October 28, 2015
Tweet

Transcript

  1. 1.
  2. 2.

    Matthias Endler - Backend Engineer at trivago - Deals with

    Website Performance - Worked a lot with Python and PHP - Played a bit with Golang - Not a Rust Programmer yet - Likes the ideas of Rust @matthiasendler
  3. 3.

    What I like about… • PHP: Package manager, Community •

    Python: Syntax, Libraries • Golang: Tooling, Documentation • C: Speed, no overhead
  4. 4.

    What I like about… • PHP: Package manager, Community •

    Python: Syntax, Libraries • Golang: Tooling, Documentation • C: Speed, no overhead RUST
  5. 6.
  6. 11.

    Fast feedback loops What we need: Awesome tooling How we

    get it: Well integrated All of them should be
  7. 12.
  8. 16.

    My tool wishlist Unit testing Package manager Syntax highlighting Formatting

    Code completion Debugging Code linter Benchmarking Profiling Code coverage
  9. 17.

    My tool wishlist Unit testing: builtin Package manager Syntax highlighting

    Formatting Code completion Debugging Code linter Benchmarking Profiling Code coverage
  10. 19.

    My tool wishlist Unit testing: builtin Package manager: cargo Syntax

    highlighting Formatting Code completion Debugging Code linter Benchmarking Profiling Code coverage
  11. 20.

    My tool wishlist Unit testing: builtin Package manager: cargo Syntax

    highlighting: atom-language-rust Formatting Code completion Debugging Code linter Benchmarking Profiling Code coverage
  12. 21.

    My tool wishlist Unit testing: builtin Package manager: cargo Syntax

    highlighting: atom-language-rust Formatting: rustfmt Code completion Debugging Code linter Benchmarking Profiling Code coverage
  13. 22.

    My tool wishlist Unit testing: builtin Package manager: cargo Syntax

    highlighting: atom-language-rust Formatting: rustfmt Code completion: racer Debugging Code linter Benchmarking Profiling Code coverage
  14. 23.

    My tool wishlist Unit testing: builtin Package manager: cargo Syntax

    highlighting: atom-language-rust Formatting: rustfmt Code completion: racer Debugging: rust gdb? Code linter Benchmarking Profiling Code coverage
  15. 24.

    My tool wishlist Unit testing: builtin Package manager: cargo Syntax

    highlighting: atom-language-rust Formatting: rustfmt Code completion: racer Debugging: rust gdb? Code linter: clippy Benchmarking Profiling Code coverage
  16. 25.

    My tool wishlist Unit testing: builtin Package manager: cargo Syntax

    highlighting: atom-language-rust Formatting: rustfmt Code completion: racer Debugging: rust gdb? Code linter: clippy Benchmarking: builtin Profiling Code coverage
  17. 26.

    My tool wishlist Unit testing: builtin Package manager: cargo Syntax

    highlighting: atom-language-rust Formatting: rustfmt Code completion: racer Debugging: rust gdb? Code linter: clippy Benchmarking: builtin Profiling: meh… Code coverage
  18. 27.

    My tool wishlist Unit testing: builtin Package manager: cargo Syntax

    highlighting: atom-language-rust Formatting: rustfmt Code completion: racer Debugging: rust gdb? Code linter: clippy Benchmarking: builtin Profiling: meh… torch? Code coverage
  19. 29.

    My tool wishlist Unit testing: builtin Package manager: cargo Syntax

    highlighting: atom-language-rust Formatting: rustfmt Code completion: racer Debugging: rust gdb? Code linter: clippy Benchmarking: builtin Profiling: meh… torch? Code coverage: kcov?
  20. 30.

    kcov …is a code coverage tester for compiled programs, Python

    scripts and shell scripts language: rust matrix: fast_finish: true include: - rust: nightly env: FEATURES="--features nightly" sudo: false - rust: nightly env: FEATURES="--features nightly" BENCH=true sudo: false - rust: beta sudo: true after_success: | sudo apt-get install libcurl4-openssl-dev libelf-dev libdw-dev && wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make && sudo make install && cd ../.. && kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/hyper-* Put this into your .travis.yml:
  21. 32.

    We need to focus on those… Unit testing Package manager

    Syntax highlighting Formatting Code completion Debugging Code linter Benchmarking Profiling Code coverage
  22. 33.

    Bonus rr - a reverse debugger
 (http://rr-project.org/) Dash - Offline

    API Documentation browser for Mac (https://kapeli.com/dash) Crates.io reverse package lookup
 (https://crates.io/crates/serde/reverse_dependencies)