Skip to content

Commit

Permalink
Use geom crate in its own repo, breaking part of the circular depende…
Browse files Browse the repository at this point in the history
…ncy with abstreet
  • Loading branch information
dabreegster committed Nov 27, 2023
1 parent 3392517 commit 086a347
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 35 deletions.
70 changes: 45 additions & 25 deletions Cargo.lock

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

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ resolver = "2"
# repeating in a bunch of crates
[workspace.dependencies]
anyhow = "1.0.38"
serde = "1.0.123"
serde_json = "1.0.61"
geom = { git = "https://github.com/a-b-street/geom" }
serde = "1.0.193"
serde_json = "1.0.108"

# To temporarily work on dependencies locally, uncomment this
#[patch."https://github.com/a-b-street/abstreet"]
#abstutil = { path = "/home/dabreegster/abstreet/abstutil" }
#geom = { path = "/home/dabreegster/abstreet/geom" }
#geom = { path = "/home/dabreegster/geom" }
2 changes: 1 addition & 1 deletion experimental/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
itertools = "0.10.2"
itertools = "0.11.0"
petgraph = "0.6.3"

# utilities from abstreet
Expand Down
2 changes: 1 addition & 1 deletion osm2lanes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
abstutil = { git = "https://github.com/a-b-street/abstreet" }
anyhow = { workspace = true }
enumset = { version = "1.0.12", features=["serde"] }
geom = { git = "https://github.com/a-b-street/abstreet" }
geom = { workspace = true }
serde = { workspace = true }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion osm2streets-js/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ abstutil = { git = "https://github.com/a-b-street/abstreet" }
anyhow = { workspace = true }
console_error_panic_hook = "0.1.6"
console_log = "1.0.0"
geom = { git = "https://github.com/a-b-street/abstreet" }
geom = { workspace = true }
experimental = { path = "../experimental" }
# TODO Upstream this in abstutil crate. WASM is missing some runtime dep otherwise.
instant = { version = "0.1.12", features = ["wasm-bindgen"] }
Expand Down
4 changes: 2 additions & 2 deletions osm2streets/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ anyhow = { workspace = true }
enumset = { version = "1.0.12", features=["serde"] }
geo = "0.26.0"
geojson = "0.24.1"
geom = { git = "https://github.com/a-b-street/abstreet" }
itertools = "0.10.5"
geom = { workspace = true }
itertools = "0.11.0"
log = "0.4.14"
osm2lanes = { path = "../osm2lanes" }
petgraph = { version = "0.6.3" }
Expand Down
2 changes: 1 addition & 1 deletion streets_reader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
abstutil = { git = "https://github.com/a-b-street/abstreet" }
anyhow = { workspace = true }
country-geocoder = { git = "https://github.com/a-b-street/country-geocoder" }
geom = { git = "https://github.com/a-b-street/abstreet" }
geom = { workspace = true }
log = "0.4.14"
osm2streets = { path = "../osm2streets" }
xmlparser = "0.13.5"
2 changes: 1 addition & 1 deletion tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
abstutil = { git = "https://github.com/a-b-street/abstreet" }
anyhow = { workspace = true }
env_logger = "0.10.1"
geom = { git = "https://github.com/a-b-street/abstreet" }
geom = { workspace = true }
streets_reader = { path = "../streets_reader" }
serde = { workspace = true }
serde_json = { workspace = true }
Expand Down

0 comments on commit 086a347

Please sign in to comment.