GitXplorerGitXplorer
j

rust-import

public
11 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
c41881b5202691db94864e337f96a3dddbda98b7

Support multiple files and imports

jjD91mZM2 committed 7 years ago
Unverified
39a4f33f55280dc4c230aec2e2805801588db203

Fix issues with conditional compilation

jjD91mZM2 committed 7 years ago
Unverified
c9a92233ef40ea7a061c1dc6352a571f9dc95002

Use take-mut

jjD91mZM2 committed 7 years ago
Unverified
e6ff0f4316a058af889218190e466663c1ba2fe2

Use less unsafe code

jjD91mZM2 committed 7 years ago
Unverified
ed482d73d269f2cc7fbae94ccd0ac81be14ffaf0

Import sorting

jjD91mZM2 committed 7 years ago
Unverified
d9b0922e97b9a9e32f502308cd9d719a02720e75

Avoid unnecessary allocations

jjD91mZM2 committed 7 years ago

README

The README file for this repository.

rust-import

First attempt at making an importing utility for Rust.

Why?

The goal is to get some sort of auto-importing to Rust.
Having a reliable way to add an import statement would greatly help with this.

Goals

  • [ ] Preserve formatting (Discussion in #3)
  • [ ] Sort imports
  • [x] Actually make it work somewhat
  • [x] Basic auto-importing
  • [x] Group imports
  • [x] Add missing extern crates

How do I use it?

Abslutely not. This is not in a usable state yet.

Auto import?

I did have a plan to auto-import stuff, but I got multiple recommendations to leave that to the RLS.
Reddit thread

There is some basic auto importing with the -a option that asks Cargo what to import.