Commit Graph

39 Commits

Author SHA1 Message Date
bbd061f0d3
Enable all features during CI test step
All checks were successful
Check
Lints
Test Suite
2023-03-20 21:18:50 +01:00
ca86701ee8
Add CI workflow for Cargo using Gitea Actions
Some checks failed
Check
Lints
Test Suite
2023-03-20 21:06:26 +01:00
aa9d2b88f7
Bump the version to 0.2.1 2023-03-11 19:54:59 +01:00
0c158e13b7
Update the changelog 2023-03-11 19:54:38 +01:00
abf3234a25
Fix typo in docs.rs metadata section name 2023-03-11 19:43:06 +01:00
be4ebc26e1
Bump dependency on derive_builder 2023-03-07 14:55:51 +01:00
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
129b29da26
Use assert_eq for float tests; drop dev depend on float_eq crate 2022-10-08 15:03:16 +02:00
6030134a34
Bump the version to 0.2.0 2022-10-01 15:47:21 +02:00
79a6f7c25f
Update the changelog 2022-10-01 15:45:11 +02:00
7fbef8ddf9
Add some more fields 2022-10-01 15:41:19 +02:00
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
f2cb2788ab
Ignore editor-specific files of VS Code and Vim 2022-10-01 15:41:19 +02:00
ff32105fce
Enable all features and document them for docs.rs 2022-10-01 15:41:19 +02:00
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
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
76ff1c95da
Use a single validator function; update tests 2022-10-01 15:20:05 +02:00
8ad3d5dea7
Fix typos and improve examples 2022-10-01 15:19:59 +02:00
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
8201b4d17b
Bump the version to 0.1.1 2022-09-30 20:52:08 +02:00
eba77d57f8
Add a changelog 2022-09-30 20:50:57 +02:00
93cc6a8501
Add some more extra fields 2022-09-30 20:44:11 +02:00
3a9bc96289
Update the examples in README.md; tweak text 2022-09-30 08:08:03 +02:00
df5901aa72
Include examples from RFC 5870 as tests 2022-09-29 22:24:00 +02:00
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
2efdddc209
Add builder tests for required fields and validation 2022-09-29 21:45:00 +02:00
fb888e4c1e
Handle (partly) uppercase parameter names 2022-09-29 21:33:28 +02:00
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
e526fa0c5e
Rename the error type; sort and shorten some variants 2022-09-29 21:00:39 +02:00
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
a71b9e8a2b
Implement and improve test; fix altitude formatting error 2022-09-29 20:22:23 +02:00
530a0a4048
Add examples; tweak documentation 2022-09-29 19:54:01 +02:00
8e4c6ce7e5
Improve text; fix and improve examples 2022-09-29 19:54:01 +02:00
f64e8d99cd
Fix builder requiring fields that are optional/have defaults 2022-09-29 19:54:01 +02:00
11412a7ff9
Enable a bunch of lints 2022-09-29 19:39:13 +02:00
537d944858
Set some warnings/error lints 2022-09-27 18:01:26 +02:00
f24fe7f6d3
Add missing fields to Cargo.toml 2022-09-27 18:01:06 +02:00
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
2029eadb3c
Initial import into Git 2022-09-27 17:10:45 +02:00