Skip to content

Commit

Permalink
Fix for docs build.
Browse files Browse the repository at this point in the history
  • Loading branch information
twitchax committed Aug 4, 2023
1 parent 8acb536 commit 3df5492
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ The library and binary both support various feature flags. Of most important no
* Binary configuration:
* `cli`: enables the CLI features, and can be removed if only compiling the library.
* `self-contained`: enables the self-contained features, which build with datasets embedded into the binary.
* `double-precision`: uses `f64`s every for `Geometry` and `Polygon` data types, which is more accurate but fatter than `f32`s.
* `double-precision`: uses `f64`s everywhere for `Geometry` and `Polygon` data types, which is more accurate but fatter than `f32`s.
* `unsimplified`: produces unsimplified data caches. Requires more binary / memory overhead, but is more accurate. Uses the level of detail from the original dataset. The default is to simplify to an epsilon of `0.0001` (generally).
* `extrasimplified`: produces extrasimplified data caches. Requires less binary / memory overhead, but is less accurate. This sets the simplification epsilon to `0.01` (generally).
* `owned-decode`: uses `owned` instead of `borrow` for the `decode` feature of the `bincode` crate. This increases memory footprint by not mapping the data directly from the binary, but is less `unsafe`-y / dark arts-y.
* Special Modifiers:
* `wasm`: enables the WASM features, and is required to build an NPM package via `wasm-pack`.
* `wasm`: enables the WASM features, and is required to build an NPM package via `wasm-pack`, or produce `wasi` binaries.
* `web = ["full"]`: enables the `serve` subcommand, which starts a Rocket web server that can respond to time zone requests.
* Other Considerations:
* `wasm` / `wasi` builds currently do not play nice with `reqwest` and `zip`, so the `wasm` / `wasi` builds require the `self-contained` feature.
Expand Down
4 changes: 2 additions & 2 deletions rtz/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rtz"
version = "0.5.1"
version = "0.5.2"
edition = "2021"
authors = ["Aaron Roney <[email protected]>"]
license = "MIT"
Expand All @@ -12,7 +12,7 @@ keywords = ["cli", "time", "zone", "timezone", "geospatial"]
categories = ["command-line-utilities"]

[package.metadata."docs.rs"]
features = ["tz-ned", "tz-osm"]
features = ["tz-ned", "tz-osm", "admin-osm"]

[lib]
name = "rtzlib"
Expand Down
4 changes: 2 additions & 2 deletions rtz/src/geo/admin/osm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use rtz_core::geo::{
};

use crate::{
geo::shared::{decode_binary_data, HasItemData, HasLookupData},
geo::shared::{HasItemData, HasLookupData},
CanPerformGeoLookup,
};

Expand Down Expand Up @@ -44,7 +44,7 @@ impl HasLookupData for OsmAdmin {

#[cfg(feature = "self-contained")]
{
CACHE.get_or_init(|| decode_binary_data(LOOKUP_BINCODE))
CACHE.get_or_init(|| crate::geo::shared::decode_binary_data(LOOKUP_BINCODE))
}

#[cfg(not(feature = "self-contained"))]
Expand Down
4 changes: 2 additions & 2 deletions rtz/src/geo/tz/ned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use rtz_core::{
};

use crate::{
geo::shared::{decode_binary_data, HasItemData, HasLookupData},
geo::shared::{HasItemData, HasLookupData},
CanPerformGeoLookup,
};

Expand Down Expand Up @@ -47,7 +47,7 @@ impl HasLookupData for NedTimezone {

#[cfg(feature = "self-contained")]
{
CACHE.get_or_init(|| decode_binary_data(LOOKUP_BINCODE))
CACHE.get_or_init(|| crate::geo::shared::decode_binary_data(LOOKUP_BINCODE))
}

#[cfg(not(feature = "self-contained"))]
Expand Down
4 changes: 2 additions & 2 deletions rtz/src/geo/tz/osm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use rtz_core::{
};

use crate::{
geo::shared::{decode_binary_data, HasItemData, HasLookupData},
geo::shared::{HasItemData, HasLookupData},
CanPerformGeoLookup,
};

Expand Down Expand Up @@ -48,7 +48,7 @@ impl HasLookupData for OsmTimezone {

#[cfg(feature = "self-contained")]
{
CACHE.get_or_init(|| decode_binary_data(LOOKUP_BINCODE))
CACHE.get_or_init(|| crate::geo::shared::decode_binary_data(LOOKUP_BINCODE))
}

#[cfg(not(feature = "self-contained"))]
Expand Down

0 comments on commit 3df5492

Please sign in to comment.