Skip to content

Commit

Permalink
Improve cargo definitions (#174)
Browse files Browse the repository at this point in the history
* rinex-qc version
* rinex-version
* introduce 'full' feature

---------

Signed-off-by: Guillaume W. Bres <[email protected]>
  • Loading branch information
gwbres authored Sep 29, 2023
1 parent b85bc45 commit 8ae76a8
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 12 deletions.
2 changes: 1 addition & 1 deletion crx2rnx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ readme = "README.md"

[dependencies]
clap = { version = "4", features = ["derive", "color"] }
rinex = { version = "0.13.1", features = ["serde"] }
rinex = { path = "../rinex", version = "=0.14.0", features = ["serde"] }
8 changes: 4 additions & 4 deletions rinex-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ pretty_env_logger = "0.5"
clap = { version = "4.4.3", features = ["derive", "color"] }
rand = "0.8"
serde_json = "1"
sp3 = { path = "../sp3", features = ["serde", "flate2"] }
rinex-qc = { path = "../rinex-qc", features = ["serde"] }
rinex = { path = "../rinex", features = ["serde", "flate2", "sbas", "obs", "nav", "qc", "processing"] }
gnss-rtk = { path = "../gnss-rtk" }
sp3 = { path = "../sp3", version = "=1.0.4", features = ["serde", "flate2"] }
rinex-qc = { path = "../rinex-qc", version = "=0.1.4", features = ["serde"] }
rinex = { path = "../rinex", version = "=0.14.0", features = ["full"] }
gnss-rtk = { path = "../gnss-rtk", version = "=0.0.1" }
thiserror = "1"
itertools = "0.11"
plotly = "0.8.4"
Expand Down
2 changes: 1 addition & 1 deletion rinex-qc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ horrorshow = "0.8"
itertools = "0.11.0"
statrs = "0.16"
sp3 = { path = "../sp3", features = ["serde"] }
rinex-qc-traits = { path = "../qc-traits" }
rinex-qc-traits = { path = "../qc-traits", version = "=0.1.1" }
rinex = { path = "../rinex", features = ["obs", "nav", "qc", "processing", "serde", "flate2"] }

[dev-dependencies]
Expand Down
15 changes: 14 additions & 1 deletion rinex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ nav = []
processing = []
qc = ["rinex-qc-traits", "horrorshow"] # rinex Quality Check (mainly OBS RINEX)

# enable everything
full = [
"flate2",
"horrorshow",
"meteo",
"nav",
"obs",
"processing",
"qc",
"sbas",
"serde",
]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docrs", "--generate-link-to-definition"]
Expand All @@ -47,7 +60,7 @@ serde = { version = "1.0", optional = true, default-features = false, features =
flate2 = { version = "1.0.24", optional = true, default-features = false, features = ["zlib"] }
hifitime = { version = "3.8", features = ["serde", "std"] }
horrorshow = { version = "0.8", optional = true }
rinex-qc-traits = { path = "../qc-traits", optional = true }
rinex-qc-traits = { path = "../qc-traits", version = "=0.1.1", optional = true }

[dev-dependencies]
serde_json = "1"
Expand Down
2 changes: 2 additions & 0 deletions rinex/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ If this feature is not enabled, one must first uncompress .gz files prior parsin
The `sbas` feature enables one method to select appropriate augmentation system
based on current location on Earth.

Compile with `full` to support all features.

## License

Licensed under either of:
Expand Down
2 changes: 1 addition & 1 deletion rnx2crx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ readme = "README.md"
chrono = "0.4"
thiserror = "1"
clap = { version = "4", features = ["derive", "color"] }
rinex = { version = "0.13.1", features = ["serde"] }
rinex = { path = "../rinex", version = "=0.14.0", features = ["serde"] }
2 changes: 1 addition & 1 deletion sinex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ chrono = "0.4"
thiserror = "1"
strum = { version = "0.25", features = ["derive"] }
strum_macros = "0.25"
rinex = { version = "0.13.1", features = ["serde"] }
rinex = { path = "../rinex", version = "=0.14.0", features = ["serde"] }
4 changes: 2 additions & 2 deletions sp3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ rustdoc-args = ["--cfg", "docrs", "--generate-link-to-definition"]
[build-dependencies]

[dependencies]
rinex = { path = "../rinex", features = ["serde"] }
hifitime = "3.8.4"
thiserror = "1"
hifitime = "3.8.4"
rinex = { path = "../rinex", version = "=0.14.0", features = ["serde"] }
serde = { version = "1.0", optional = true, default-features = false, features = ["derive"] }
flate2 = { version = "1.0.24", optional = true, default-features = false, features = ["zlib"] }

Expand Down
2 changes: 1 addition & 1 deletion ublox-rnx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ serde = "1.0"
serde_json = "1.0"
serialport = "4.2.0"
ublox = "0.4.4"
rinex = { path = "../rinex", features = ["serde"] }
rinex = { path = "../rinex", version = "=0.14.0", features = ["serde"] }
clap = { version = "3.2.22", features = ["yaml"] }

0 comments on commit 8ae76a8

Please sign in to comment.