From 320651e6924586e1dfc8d89aad50ecc4f190e8e6 Mon Sep 17 00:00:00 2001 From: Zach Date: Sun, 11 Aug 2024 10:16:34 -0400 Subject: [PATCH 1/5] Add crates.io badge, docs.rs badge, check link --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9328ca3..d08afe8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Compass Data -![GitHub branch status](https://img.shields.io/github/checks-status/zheylmun/compass_data/main?style=for-the-badge&logo=GitHub) +[![Crates.io Version](https://img.shields.io/crates/v/compass_data?style=for-the-badge)](https://crates.io/crates/compass_data) +[![docs.rs](https://img.shields.io/docsrs/compass_data?style=for-the-badge)](https://docs.rs/compass_data/latest/compass_data/) +[![GitHub branch status](https://img.shields.io/github/checks-status/zheylmun/compass_data/main?style=for-the-badge&logo=GitHub)](https://github.com/zheylmun/compass_data/actions) [![Codecov](https://img.shields.io/codecov/c/github/zheylmun/compass_data?style=for-the-badge&logo=CodeCov)](https://app.codecov.io/gh/zheylmun/compass_data) Small library for loading, working with, and generating [Compass](https://www.fountainware.com/compass/index.htm) survey project and survey files. Please note that there are no plans to load plot files. From 4d25bef29abde105dd55dafe42f8071e648603bb Mon Sep 17 00:00:00 2001 From: Zach Date: Sun, 11 Aug 2024 10:16:57 -0400 Subject: [PATCH 2/5] clarify comment on plot files --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d08afe8..720cf7d 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ [![Codecov](https://img.shields.io/codecov/c/github/zheylmun/compass_data?style=for-the-badge&logo=CodeCov)](https://app.codecov.io/gh/zheylmun/compass_data) Small library for loading, working with, and generating [Compass](https://www.fountainware.com/compass/index.htm) survey project and survey files. Please note that there are no plans to load plot files. -The goal is to enable interop between survey software, -not replace functionality. +The goal is to enable inter-operation and data sharing between survey software. +Data analysis and mapping making functionality are not current goals. ## License From c75f33874bd655e78178562e9cff86571ad0b6b5 Mon Sep 17 00:00:00 2001 From: Zach Date: Wed, 20 Nov 2024 16:04:56 -0500 Subject: [PATCH 3/5] Fix clippy lint on doc comment --- src/project/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/project/mod.rs b/src/project/mod.rs index a336b38..bc33a45 100644 --- a/src/project/mod.rs +++ b/src/project/mod.rs @@ -15,6 +15,7 @@ use std::{ use crate::{EastNorthElevation, Error, Survey, UtmLocation}; /// Compass projects can be defined in a variety of geodetic datums. +/// /// The datum is used to convert between the geodetic coordinates used in the survey data. /// This enum provides a list of the datums supported by Compass. #[derive(Clone, Copy, Debug, PartialEq)] From 3b9700255c996b19a9a06d14eeb4ce84bb5329e0 Mon Sep 17 00:00:00 2001 From: Zach Date: Wed, 20 Nov 2024 16:05:25 -0500 Subject: [PATCH 4/5] Test the survey loading functionality too --- src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 1514c8b..68395c2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,7 +22,9 @@ mod tests { let mut sample_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")); sample_path.push("test_data/Fulfords.mak"); - let loaded_project = Project::read(&sample_path).unwrap(); - assert_eq!(loaded_project.survey_files.len(), 2); + let unloaded_project = Project::read(&sample_path).unwrap(); + assert_eq!(unloaded_project.survey_files.len(), 2); + // Make sure we can load all the project files too + let _loaded_project = unloaded_project.load_survey_files().unwrap(); } } From 912c01579b60361749fa4a724ad31a50becacadf Mon Sep 17 00:00:00 2001 From: Zach Date: Sun, 2 Mar 2025 10:45:15 -0500 Subject: [PATCH 5/5] use stable --- .github/workflows/ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a0dbaa..9a9b2c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,9 +21,7 @@ jobs: timeout-minutes: 5 steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@nightly - with: - components: llvm-tools, rustc-dev + - uses: dtolnay/rust-toolchain@stable - run: cargo test --all-features --release --tests clippy: @@ -32,7 +30,7 @@ jobs: timeout-minutes: 5 steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@nightly + - uses: dtolnay/rust-toolchain@stable with: components: clippy,rustc-dev - run: cargo clippy --all-features --tests --benches -- -Dclippy::all -Dclippy::pedantic @@ -44,8 +42,7 @@ jobs: CARGO_TERM_COLOR: always steps: - uses: actions/checkout@v4 - - name: Install Rust - run: rustup update stable + - uses: dtolnay/rust-toolchain@stable - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - name: Generate code coverage