Commit Graph

47 Commits

Author SHA1 Message Date
Paul van Tilburg 0ef589a5ac Add a full Gitea Actions release workflow
Check, lint and test using Cargo / Check, lint and test (push) Successful in 1m37s Details
2024-04-03 21:45:05 +02:00
Paul van Tilburg 8b69470cff Bump the version to 0.2.2
Check, lint and test using Cargo / Check, lint and test (push) Successful in 1m29s Details
2024-04-03 21:40:04 +02:00
Paul van Tilburg 071473ffcf Specify which files to package for publishing 2024-04-03 21:39:48 +02:00
Paul van Tilburg 867397d2db Update the changelog 2024-04-03 21:34:47 +02:00
Paul van Tilburg 54e3540946 Bump the dependency on derived_builder to 0.20.0 2024-04-03 21:31:50 +02:00
Paul van Tilburg c63bdceb01
Simplify Gitea Actions check and lint workflow
Check, lint and test using Cargo / Check, lint and test (push) Successful in 1m42s Details
2023-04-25 16:34:08 +02:00
Paul van Tilburg 00856f4dd9
Speed up workflow by using sparce Cargo index for crates.io
Check Details
Lints Details
Test Suite Details
2023-03-21 11:45:16 +01:00
Paul van Tilburg e6f02664b7
Tweak the cargo workflow a bit more
Check Details
Lints Details
Test Suite Details
- Run using the `debian-latest` image
- Use local `actions/checkout` where possible
- Small reordering
2023-03-21 10:48:11 +01:00
Paul van Tilburg bbd061f0d3
Enable all features during CI test step
Check Details
Lints Details
Test Suite Details
2023-03-20 21:18:50 +01:00
Paul van Tilburg ca86701ee8
Add CI workflow for Cargo using Gitea Actions
Check Details
Lints Details
Test Suite Details
2023-03-20 21:06:26 +01:00
Paul van Tilburg aa9d2b88f7
Bump the version to 0.2.1 2023-03-11 19:54:59 +01:00
Paul van Tilburg 0c158e13b7
Update the changelog 2023-03-11 19:54:38 +01:00
Paul van Tilburg abf3234a25
Fix typo in docs.rs metadata section name 2023-03-11 19:43:06 +01:00
Paul van Tilburg be4ebc26e1
Bump dependency on derive_builder 2023-03-07 14:55:51 +01:00
Paul van Tilburg f00fbc76ab
Fix links in README
In rustdoc, the crate's own types don't need to be linked, but for some
web view that uses plain Markdown, the links looked weird. Fix this by
linkin the crates' own types too.
2022-10-13 19:30:40 +02:00
Paul van Tilburg 129b29da26
Use assert_eq for float tests; drop dev depend on float_eq crate 2022-10-08 15:03:16 +02:00
Paul van Tilburg 6030134a34
Bump the version to 0.2.0 2022-10-01 15:47:21 +02:00
Paul van Tilburg 79a6f7c25f
Update the changelog 2022-10-01 15:45:11 +02:00
Paul van Tilburg 7fbef8ddf9
Add some more fields 2022-10-01 15:41:19 +02:00
Paul van Tilburg 56a888d5a3
Add support for serde (closes: #2)
* Introduce and document the `serde` feature
* Implement `serde::Deserialize` and `serde::Serialize` for `GeoUri`
* Add tests
2022-10-01 15:41:19 +02:00
Paul van Tilburg f2cb2788ab
Ignore editor-specific files of VS Code and Vim 2022-10-01 15:41:19 +02:00
Paul van Tilburg ff32105fce
Enable all features and document them for docs.rs 2022-10-01 15:41:19 +02:00
Paul van Tilburg 758a3f8072
Add support for converting from/to Url structs (closes: #1)
* Introduce and document the `url` feature
* Implement `From<&GeoUri>` and `From<GeoUri>` for `Url`
* Implement `TryFrom<&Url>` and `TryFrom<Url>` for `GeoUri`
* Add and extend tests
2022-10-01 15:41:18 +02:00
Paul van Tilburg 2628e96740
Add support for conversion from coordinate tuples
* Implement the `TryFrom` trait for `GeoUri` for `(f64, f64)` and
  `(f64, f64, f64)`
* Extend the tests
* Update the documentation
2022-10-01 15:20:05 +02:00
Paul van Tilburg 76ff1c95da
Use a single validator function; update tests 2022-10-01 15:20:05 +02:00
Paul van Tilburg 8ad3d5dea7
Fix typos and improve examples 2022-10-01 15:19:59 +02:00
Paul van Tilburg 7f3d4128b8
Make crate adhere to Rust API guidelines
* Don't set the `homepage` field in `Cargo.toml` if it is the same as
  the repository (C-METADATA)
* Don't use `expect` but `?` in examples (C-QUESTION-MARK)
  (This cannot be fixed for the README for now, unfortunately)
* Document the errors for all methods which return a `Result`
  (C-FAILURE)
2022-10-01 13:53:02 +02:00
Paul van Tilburg 8201b4d17b
Bump the version to 0.1.1 2022-09-30 20:52:08 +02:00
Paul van Tilburg eba77d57f8
Add a changelog 2022-09-30 20:50:57 +02:00
Paul van Tilburg 93cc6a8501
Add some more extra fields 2022-09-30 20:44:11 +02:00
Paul van Tilburg 3a9bc96289
Update the examples in README.md; tweak text 2022-09-30 08:08:03 +02:00
Paul van Tilburg df5901aa72
Include examples from RFC 5870 as tests 2022-09-29 22:24:00 +02:00
Paul van Tilburg 6a9c13d099
Change uncertainty distance to be of type f64
The uncertainty distance is a positive floating number.

* Validate this while parsing/building/using the setter
* Add the error variant `Error::OutOfRangeUncertainty` and change
  `Error::InvalidDistance` to `Error::InvalidUncertainty`
* Update the tests
2022-09-29 22:19:45 +02:00
Paul van Tilburg 2efdddc209
Add builder tests for required fields and validation 2022-09-29 21:45:00 +02:00
Paul van Tilburg fb888e4c1e
Handle (partly) uppercase parameter names 2022-09-29 21:33:28 +02:00
Paul van Tilburg 3e2584dcda
Add getters/setters for `GeoUri`
Also make all of its fields private.
This prevents parsing/building a valid geo URI and then making it
invalid by setting the latitude/longitude to something incorrect.
2022-09-29 21:25:01 +02:00
Paul van Tilburg e526fa0c5e
Rename the error type; sort and shorten some variants 2022-09-29 21:00:39 +02:00
Paul van Tilburg a8a655f388
Validate latitude/longitude coordinates for WGS-84
Implement this for the parser as well as the builder.

Also rename `CrsId` to `CoordRefSystem` and the `GeoUri.crs_id` field
to `GeoUri.crs`.
2022-09-29 20:51:30 +02:00
Paul van Tilburg a71b9e8a2b
Implement and improve test; fix altitude formatting error 2022-09-29 20:22:23 +02:00
Paul van Tilburg 530a0a4048
Add examples; tweak documentation 2022-09-29 19:54:01 +02:00
Paul van Tilburg 8e4c6ce7e5
Improve text; fix and improve examples 2022-09-29 19:54:01 +02:00
Paul van Tilburg f64e8d99cd
Fix builder requiring fields that are optional/have defaults 2022-09-29 19:54:01 +02:00
Paul van Tilburg 11412a7ff9
Enable a bunch of lints 2022-09-29 19:39:13 +02:00
Paul van Tilburg 537d944858
Set some warnings/error lints 2022-09-27 18:01:26 +02:00
Paul van Tilburg f24fe7f6d3
Add missing fields to Cargo.toml 2022-09-27 18:01:06 +02:00
Paul van Tilburg 7ec8dbc7d3
Add README.md and LICENSE file
Also link the files from the crate and include `README.md` as the
crate documentation.
2022-09-27 18:00:03 +02:00
Paul van Tilburg 2029eadb3c
Initial import into Git 2022-09-27 17:10:45 +02:00