@@ -16,45 +16,64 @@ rust-version = "1.80"
16
16
name = " _rust"
17
17
crate-type = [" cdylib" ]
18
18
19
+ [features ]
20
+ default = [" async" , " libc" , " rayon" ]
21
+ async = [
22
+ " dep:futures" ,
23
+ " dep:object_store" ,
24
+ " parquet/object_store" ,
25
+ " dep:pyo3-asyncio-0-21" ,
26
+ " geoarrow/flatgeobuf_async" ,
27
+ " geoarrow/parquet_async" ,
28
+ " geoarrow/postgis" ,
29
+ " dep:sqlx" ,
30
+ " dep:tokio" ,
31
+ ]
32
+ libc = [" geoarrow/polylabel" ]
33
+ rayon = [" geoarrow/rayon" ]
34
+
19
35
[dependencies ]
20
36
arrow = " 52"
21
37
arrow-array = " 52"
22
38
arrow-buffer = " 52"
23
39
bytes = " 1"
24
40
flatgeobuf = { version = " 4.2.0" , default-features = false }
25
- futures = " 0.3"
26
- object_store = { version = " 0.10" , features = [" aws" , " azure" , " gcp" , " http" ] }
27
- parquet = { version = " 52" , features = [" object_store" ] }
41
+ futures = { version = " 0.3" , optional = true }
42
+ object_store = { version = " 0.10" , features = [
43
+ " aws" ,
44
+ " azure" ,
45
+ " gcp" ,
46
+ " http" ,
47
+ ], optional = true }
48
+ parquet = " 52"
28
49
pyo3 = { version = " 0.21.0" , features = [
29
50
" abi3-py38" ,
30
- " multiple-pymethods" ,
31
51
" hashbrown" ,
32
52
" serde" ,
33
53
" anyhow" ,
34
54
] }
35
- pyo3-arrow = { git = " https://github.com/kylebarron/arro3" , rev = " d0d737a03c141ff316e3e354d85828edb42338d4" }
36
- pyo3-asyncio-0-21 = { version = " 0.21" , features = [" tokio-runtime" ] }
55
+ pyo3-arrow = " 0.2"
56
+ pyo3-asyncio-0-21 = { version = " 0.21" , features = [
57
+ " tokio-runtime" ,
58
+ ], optional = true }
37
59
pythonize = " 0.21"
38
60
geo = " 0.28"
39
61
geoarrow = { path = " ../../" , features = [
40
62
" csv" ,
41
- " flatgeobuf_async" ,
42
63
" flatgeobuf" ,
43
64
" geozero" ,
44
65
" ipc_compression" ,
45
- " parquet_async" ,
46
66
" parquet_compression" ,
47
67
" parquet" ,
48
- " polylabel" ,
49
- " postgis" ,
50
- " rayon" ,
51
68
] }
52
69
geozero = { version = " 0.13" , features = [" with-svg" ] }
53
70
numpy = " 0.21"
54
71
serde_json = " 1"
55
- sqlx = { version = " 0.7" , default-features = false , features = [" postgres" ] }
72
+ sqlx = { version = " 0.7" , default-features = false , features = [
73
+ " postgres" ,
74
+ ], optional = true }
56
75
thiserror = " 1"
57
- tokio = { version = " 1.9" , features = [" rt" ] }
76
+ tokio = { version = " 1.9" , features = [" rt" ], optional = true }
58
77
url = " 2.5"
59
78
60
79
# reqwest is pulled in by object store, but not used by python binding itself
0 commit comments