Cache rust build artifacts
This commit is contained in:
parent
9be403c7eb
commit
fcab658518
7
justfile
7
justfile
@ -59,6 +59,13 @@ init:
|
|||||||
clean: output-clean
|
clean: output-clean
|
||||||
cargo clean
|
cargo clean
|
||||||
|
|
||||||
|
rust-cache:
|
||||||
|
cargo check --all
|
||||||
|
cargo build --all
|
||||||
|
cargo test --all
|
||||||
|
cargo doc --all
|
||||||
|
cargo clippy --all
|
||||||
|
|
||||||
init-python:
|
init-python:
|
||||||
if [ ! -d "wordlist/venv" ]; then python3 -m virtualenv wordlist/venv -p "$(which python3)"; fi; export OSTYPE=linux-gnu && . wordlist/venv/bin/activate
|
if [ ! -d "wordlist/venv" ]; then python3 -m virtualenv wordlist/venv -p "$(which python3)"; fi; export OSTYPE=linux-gnu && . wordlist/venv/bin/activate
|
||||||
export OSTYPE=linux-gnu && . wordlist/venv/bin/activate && pip install -r wordlist/requirements.txt && python -c 'import nltk; nltk.download('wordnet')'
|
export OSTYPE=linux-gnu && . wordlist/venv/bin/activate && pip install -r wordlist/requirements.txt && python -c 'import nltk; nltk.download('wordnet')'
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
///
|
///
|
||||||
/// For the latitude values, we need to flip the longitude whenever the latitude crosses a pole.
|
/// For the latitude values, we need to flip the longitude whenever the latitude crosses a pole.
|
||||||
///
|
///
|
||||||
/// Description and original source was ported from https://gist.github.com/missinglink/d0a085188a8eab2ca66db385bb7c023a to rust
|
/// Description and original source was ported from <https://gist.github.com/missinglink/d0a085188a8eab2ca66db385bb7c023a> to rust
|
||||||
pub fn wrap_latlon(mut lat: f64, mut lon: f64) -> (f64, f64) {
|
pub fn wrap_latlon(mut lat: f64, mut lon: f64) -> (f64, f64) {
|
||||||
let quadrant = ((lat.abs() / 90_f64).floor() % 4_f64) as i8;
|
let quadrant = ((lat.abs() / 90_f64).floor() % 4_f64) as i8;
|
||||||
let pole = if lat > 0_f64 { 90_f64 } else { -90_f64 };
|
let pole = if lat > 0_f64 { 90_f64 } else { -90_f64 };
|
||||||
|
@ -144,7 +144,7 @@ impl TryFrom<Coordinate> for EncodedAddress {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
// use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_general() {
|
fn test_general() {
|
||||||
|
Loading…
Reference in New Issue
Block a user