To speed up kd-trees, we use kiddo, which requires nighthly build. To make rust nightly build the default:
rustup default nightly
To install nightly version of the tools:
rustup toolchain install nightly
We follow the official Rust coding style. You can use rustfmt (or run cargo fmt) to automatically formt your code.