Skip to content
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

replace cargo.rs using cargo crate #3

Merged
merged 1 commit into from
Mar 29, 2018

Conversation

kngwyu
Copy link
Owner

@kngwyu kngwyu commented Mar 29, 2018

Current racer's crafty crate search has many problems(e.g. nanomsg crate(see comments in 551)).
So I replaced it with cargo crate.
I also had to rewrote some parts of test, because cargo needs absolute pass to construct workspace. In addition, I removed all sync!() in test code, because it's useless. File IO is thread safe because we're using thread name as tempdir name, and, I don't think test code should be 100% safe. Now test is much faster.

It works well, but sometimes I feel completion is quite slow(e.g. when I type lib in fileres.rs, my emacs froze about 3~4 seconds).
So it's next problem to tackle.

Current racer's crafty crate search has many problems(e.g. nanomsg
crate(see comments in issue 551)). So I replaced it with cargo
crate. I also had to rewrote some parts of test, because cargo needs
absolute pass to construct workspace. In addition, I removed all
sync!() in test code, because it's useless. File IO is thread safe
because we're using thread name as tempdir name, and, I don't think
test code should be 100% safe. Now test is much faster.
Except sometimes I feel it's a bit slow, it works well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant