Skip to content

Commit 8fda9ab

Browse files
authored
Make rust subfolder (#842)
Closes #103
1 parent b8d859a commit 8fda9ab

File tree

358 files changed

+166
-160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

358 files changed

+166
-160
lines changed

Cargo.toml

Lines changed: 4 additions & 157 deletions
Original file line numberDiff line numberDiff line change
@@ -1,157 +1,4 @@
1-
[package]
2-
name = "geoarrow"
3-
version = "0.4.0-beta.1"
4-
authors = ["Kyle Barron <[email protected]>"]
5-
edition = "2021"
6-
license = "MIT OR Apache-2.0"
7-
repository = "https://github.com/geoarrow/geoarrow-rs"
8-
description = "Rust implementation of GeoArrow"
9-
categories = ["science::geo"]
10-
rust-version = "1.80"
11-
12-
[features]
13-
csv = ["geozero/with-csv"]
14-
flatgeobuf = ["dep:flatgeobuf"]
15-
flatgeobuf_async = [
16-
"flatgeobuf/http",
17-
"dep:async-trait",
18-
"dep:bytes",
19-
"dep:http-range-client",
20-
"dep:object_store",
21-
]
22-
gdal = ["dep:gdal"]
23-
geos = ["dep:geos"]
24-
ipc_compression = ["arrow-ipc/lz4", "arrow-ipc/zstd"]
25-
parquet = ["dep:parquet"]
26-
parquet_async = [
27-
"parquet",
28-
"parquet/async",
29-
"dep:async-stream",
30-
"dep:futures",
31-
"dep:tokio",
32-
]
33-
parquet_compression = [
34-
"parquet/snap",
35-
"parquet/brotli",
36-
"parquet/flate2",
37-
"parquet/lz4",
38-
"parquet/zstd",
39-
]
40-
polylabel = ["dep:polylabel"]
41-
postgis = ["dep:futures", "dep:sqlx"]
42-
proj = ["dep:proj"]
43-
rayon = ["dep:rayon"]
44-
45-
46-
[dependencies]
47-
arrow = { version = "53", features = ["ffi"] }
48-
arrow-array = { version = "53", features = ["chrono-tz"] }
49-
arrow-buffer = "53"
50-
arrow-cast = { version = "53" }
51-
arrow-data = "53"
52-
arrow-ipc = "53"
53-
arrow-schema = "53"
54-
async-stream = { version = "0.3", optional = true }
55-
async-trait = { version = "0.1", optional = true }
56-
byteorder = "1"
57-
bytes = { version = "1.5.0", optional = true }
58-
chrono = { version = "0.4" }
59-
dbase = "0.5.0"
60-
enum-as-inner = "0.6.1"
61-
# Set default-features = false because async not working in wasm right now
62-
flatgeobuf = { version = "4.4.0", optional = true, default-features = false }
63-
futures = { version = "0.3", optional = true }
64-
gdal = { version = "0.17", optional = true }
65-
geo = "0.28"
66-
geo-index = "0.1.1"
67-
geo-traits = "0.1.1"
68-
geos = { version = "9.0", features = ["v3_10_0", "geo"], optional = true }
69-
geozero = { version = "0.14", features = ["with-wkb"] }
70-
half = { version = "2.4.1" }
71-
http-range-client = { version = "0.8", optional = true }
72-
indexmap = { version = "2" }
73-
lexical-core = { version = "0.8.5" }
74-
num_enum = "0.7"
75-
object_store = { version = "0.11", optional = true }
76-
parquet = { version = "53", optional = true, default-features = false, features = [
77-
"arrow",
78-
] }
79-
phf = { version = "0.11", features = ["macros"] }
80-
polylabel = { version = "3.2.0", optional = true }
81-
proj = { version = "0.27.2", optional = true, features = [
82-
"pkg_config",
83-
"geo-types",
84-
] }
85-
rayon = { version = "1.8.0", optional = true }
86-
rstar = "0.12"
87-
serde = { version = "1", features = ["derive"] }
88-
serde_json = "1"
89-
shapefile = "0.6"
90-
sqlx = { version = "0.7", optional = true, default-features = false, features = [
91-
"chrono",
92-
"json",
93-
"postgres",
94-
"runtime-tokio",
95-
"tls-rustls",
96-
] }
97-
thiserror = "1"
98-
tokio = { version = "1", default-features = false, optional = true }
99-
# wkt = "0.11"
100-
wkt = { git = "https://github.com/georust/wkt", branch = "kyle/geo-traits-writer" }
101-
102-
103-
[dev-dependencies]
104-
approx = "0.5.1"
105-
bytes = "1.5.0"
106-
criterion = { version = "0.5", features = ["html_reports"] }
107-
gdal = { version = "0.17", features = ["bindgen"] }
108-
geozero = { version = "0.14", features = ["with-wkb"] }
109-
sqlx = { version = "0.7", default-features = false, features = ["postgres"] }
110-
tokio = { version = "1.9", features = ["macros", "fs", "rt-multi-thread"] }
111-
object_store = { version = "0.11", features = ["http", "aws"] }
112-
parquet = { version = "53", default-features = false, features = [
113-
"arrow",
114-
"object_store",
115-
] }
116-
117-
118-
[lib]
119-
doctest = true
120-
121-
[[example]]
122-
name = "gdal"
123-
test = false
124-
required-features = ["gdal"]
125-
126-
[[bench]]
127-
name = "area"
128-
harness = false
129-
required-features = ["flatgeobuf"]
130-
131-
[[bench]]
132-
name = "from_geo"
133-
harness = false
134-
135-
[[bench]]
136-
name = "geos_buffer"
137-
harness = false
138-
required-features = ["geos"]
139-
140-
[[bench]]
141-
name = "nybb"
142-
harness = false
143-
required-features = ["ipc_compression"]
144-
145-
[[bench]]
146-
name = "translate"
147-
harness = false
148-
149-
[[bench]]
150-
name = "wkb"
151-
harness = false
152-
bench = false # TODO fix this benchmark
153-
required-features = ["parquet_compression"]
154-
155-
[package.metadata.docs.rs]
156-
rustdoc-args = ["--cfg", "docsrs"]
157-
features = ["csv", "flatgeobuf", "geos", "parquet", "postgis", "rayon"]
1+
[workspace]
2+
members = ["rust/geoarrow"]
3+
exclude = ["js"]
4+
resolver = "2"

js/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ console_error_panic_hook = { version = "0.1.6", optional = true }
9090
futures = { version = "0.3.30", optional = true }
9191
geo = "0.28"
9292
geo-traits = "0.1.1"
93-
geoarrow = { path = "../" }
93+
geoarrow = { path = "../rust/geoarrow" }
9494
geodesy = { version = "0.12", optional = true, features = ["js"] }
9595
object_store = { version = "0.11", optional = true }
9696
# Use released version when it supports object-store 0.11

python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ arrow-array = "53"
1919
arrow-buffer = "53"
2020
arrow-schema = "53"
2121
geo-traits = "0.1.1"
22-
geoarrow = { path = "../" }
22+
geoarrow = { path = "../rust/geoarrow" }
2323
# Uncomment when publishing
2424
# geoarrow = { version = "0.4.0-beta.1" }
2525
geozero = "0.14"

python/geoarrow-io/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pyo3-asyncio-0-21 = { version = "0.21", features = [
5151
pythonize = "0.21"
5252
geo = "0.28"
5353
geo-traits = { workspace = true }
54-
geoarrow = { path = "../../", features = [
54+
geoarrow = { workspace = true, features = [
5555
"csv",
5656
"flatgeobuf",
5757
"ipc_compression",

rust/geoarrow/Cargo.toml

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
2+
[package]
3+
name = "geoarrow"
4+
version = "0.4.0-beta.1"
5+
authors = ["Kyle Barron <[email protected]>"]
6+
edition = "2021"
7+
license = "MIT OR Apache-2.0"
8+
repository = "https://github.com/geoarrow/geoarrow-rs"
9+
description = "Rust implementation of GeoArrow"
10+
categories = ["science::geo"]
11+
rust-version = "1.80"
12+
13+
[features]
14+
csv = ["geozero/with-csv"]
15+
flatgeobuf = ["dep:flatgeobuf"]
16+
flatgeobuf_async = [
17+
"flatgeobuf/http",
18+
"dep:async-trait",
19+
"dep:bytes",
20+
"dep:http-range-client",
21+
"dep:object_store",
22+
]
23+
gdal = ["dep:gdal"]
24+
geos = ["dep:geos"]
25+
ipc_compression = ["arrow-ipc/lz4", "arrow-ipc/zstd"]
26+
parquet = ["dep:parquet"]
27+
parquet_async = [
28+
"parquet",
29+
"parquet/async",
30+
"dep:async-stream",
31+
"dep:futures",
32+
"dep:tokio",
33+
]
34+
parquet_compression = [
35+
"parquet/snap",
36+
"parquet/brotli",
37+
"parquet/flate2",
38+
"parquet/lz4",
39+
"parquet/zstd",
40+
]
41+
polylabel = ["dep:polylabel"]
42+
postgis = ["dep:futures", "dep:sqlx"]
43+
proj = ["dep:proj"]
44+
rayon = ["dep:rayon"]
45+
46+
47+
[dependencies]
48+
arrow = { version = "53", features = ["ffi"] }
49+
arrow-array = { version = "53", features = ["chrono-tz"] }
50+
arrow-buffer = "53"
51+
arrow-cast = { version = "53" }
52+
arrow-data = "53"
53+
arrow-ipc = "53"
54+
arrow-schema = "53"
55+
async-stream = { version = "0.3", optional = true }
56+
async-trait = { version = "0.1", optional = true }
57+
byteorder = "1"
58+
bytes = { version = "1.5.0", optional = true }
59+
chrono = { version = "0.4" }
60+
dbase = "0.5.0"
61+
enum-as-inner = "0.6.1"
62+
# Set default-features = false because async not working in wasm right now
63+
flatgeobuf = { version = "4.4.0", optional = true, default-features = false }
64+
futures = { version = "0.3", optional = true }
65+
gdal = { version = "0.17", optional = true }
66+
geo = "0.28"
67+
geo-index = "0.1.1"
68+
geo-traits = "0.1.1"
69+
geos = { version = "9.0", features = ["v3_10_0", "geo"], optional = true }
70+
geozero = { version = "0.14", features = ["with-wkb"] }
71+
half = { version = "2.4.1" }
72+
http-range-client = { version = "0.8", optional = true }
73+
indexmap = { version = "2" }
74+
lexical-core = { version = "0.8.5" }
75+
num_enum = "0.7"
76+
object_store = { version = "0.11", optional = true }
77+
parquet = { version = "53", optional = true, default-features = false, features = [
78+
"arrow",
79+
] }
80+
phf = { version = "0.11", features = ["macros"] }
81+
polylabel = { version = "3.2.0", optional = true }
82+
proj = { version = "0.27.2", optional = true, features = [
83+
"pkg_config",
84+
"geo-types",
85+
] }
86+
rayon = { version = "1.8.0", optional = true }
87+
rstar = "0.12"
88+
serde = { version = "1", features = ["derive"] }
89+
serde_json = "1"
90+
shapefile = "0.6"
91+
sqlx = { version = "0.7", optional = true, default-features = false, features = [
92+
"chrono",
93+
"json",
94+
"postgres",
95+
"runtime-tokio",
96+
"tls-rustls",
97+
] }
98+
thiserror = "1"
99+
tokio = { version = "1", default-features = false, optional = true }
100+
# wkt = "0.11"
101+
wkt = { git = "https://github.com/georust/wkt", branch = "kyle/geo-traits-writer" }
102+
103+
104+
[dev-dependencies]
105+
approx = "0.5.1"
106+
bytes = "1.5.0"
107+
criterion = { version = "0.5", features = ["html_reports"] }
108+
gdal = { version = "0.17", features = ["bindgen"] }
109+
geozero = { version = "0.14", features = ["with-wkb"] }
110+
sqlx = { version = "0.7", default-features = false, features = ["postgres"] }
111+
tokio = { version = "1.9", features = ["macros", "fs", "rt-multi-thread"] }
112+
object_store = { version = "0.11", features = ["http", "aws"] }
113+
parquet = { version = "53", default-features = false, features = [
114+
"arrow",
115+
"object_store",
116+
] }
117+
118+
119+
[lib]
120+
doctest = true
121+
122+
[[example]]
123+
name = "gdal"
124+
test = false
125+
required-features = ["gdal"]
126+
127+
[[bench]]
128+
name = "area"
129+
harness = false
130+
required-features = ["flatgeobuf"]
131+
132+
[[bench]]
133+
name = "from_geo"
134+
harness = false
135+
136+
[[bench]]
137+
name = "geos_buffer"
138+
harness = false
139+
required-features = ["geos"]
140+
141+
[[bench]]
142+
name = "nybb"
143+
harness = false
144+
required-features = ["ipc_compression"]
145+
146+
[[bench]]
147+
name = "translate"
148+
harness = false
149+
150+
[[bench]]
151+
name = "wkb"
152+
harness = false
153+
bench = false # TODO fix this benchmark
154+
required-features = ["parquet_compression"]
155+
156+
[package.metadata.docs.rs]
157+
rustdoc-args = ["--cfg", "docsrs"]
158+
features = ["csv", "flatgeobuf", "geos", "parquet", "postgis", "rayon"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)