Eclipse has its own Java compiler just for the purpose of IDE integration. rust-analyzer is a very lightweight solution.