[package]
edition = "2024"
rust-version = "1.90"
name = "osmflow"
version = "0.15.0"
authors = ["Yuri Astrakhan <YuriAstrakhan@gmail.com>"]
build = false
exclude = ["/fixtures"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast, parallel reading of OpenStreetMap PBF files, and node location stores, from a city extract to the planet"
readme = "README.md"
keywords = [
"osm",
"openstreetmap",
"pbf",
"parser",
"cache",
]
categories = [
"parser-implementations",
"science::geo",
"caching",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/nyurik/osmflow/tree/main/crates/osmflow/"
[package.metadata.docs.rs]
all-features = true
[features]
default = [
"geometry",
"osc",
]
geometry = [
"dep:geo-types",
"dep:i_overlay",
"nodes",
"pbf",
]
http = [
"dep:ureq",
"osc",
]
nodes = [
"dep:bytemuck",
"dep:crc32fast",
"dep:memmap2",
"dep:rayon",
]
osc = [
"dep:flate2",
"dep:memchr",
"dep:tracing",
]
pbf = [
"dep:buffa",
"dep:flate2",
"dep:rayon",
"dep:rustix",
"dep:tracing",
]
[lib]
name = "osmflow"
path = "src/lib.rs"
[[example]]
name = "codegen"
path = "examples/codegen.rs"
[[test]]
name = "fixtures"
path = "tests/fixtures.rs"
required-features = ["pbf"]
[[test]]
name = "generated"
path = "tests/generated.rs"
required-features = ["pbf"]
[[test]]
name = "geometry"
path = "tests/geometry.rs"
required-features = ["geometry"]
[[test]]
name = "keys"
path = "tests/keys.rs"
required-features = ["pbf"]
[[test]]
name = "layout"
path = "tests/layout.rs"
required-features = ["pbf"]
[[test]]
name = "osc"
path = "tests/osc.rs"
required-features = [
"osc",
"pbf",
]
[[test]]
name = "pools"
path = "tests/pools.rs"
required-features = ["pbf"]
[[test]]
name = "ranges"
path = "tests/ranges.rs"
required-features = ["pbf"]
[[test]]
name = "replication"
path = "tests/replication.rs"
required-features = ["osc"]
[[bench]]
name = "nodes"
path = "benches/nodes.rs"
harness = false
required-features = ["nodes"]
[[bench]]
name = "osc"
path = "benches/osc.rs"
harness = false
required-features = ["osc"]
[dependencies.buffa]
version = "=0.9.2"
optional = true
[dependencies.bytemuck]
version = "1.25"
features = [
"derive",
"extern_crate_alloc",
"min_const_generics",
]
optional = true
[dependencies.crc32fast]
version = "1.3"
optional = true
[dependencies.flate2]
version = "1.1.10"
features = [
"zlib-rs",
"runtime_detection",
]
optional = true
default-features = false
[dependencies.geo-types]
version = "0.7.9"
features = ["std"]
optional = true
default-features = false
[dependencies.i_overlay]
version = "9.1"
optional = true
default-features = false
[dependencies.memchr]
version = "2.7"
optional = true
[dependencies.memmap2]
version = "0.9"
optional = true
[dependencies.rayon]
version = "1.7"
optional = true
[dependencies.strum]
version = "0.28"
features = ["derive"]
[dependencies.thiserror]
version = "2"
[dependencies.tracing]
version = "0.1.41"
features = ["std"]
optional = true
default-features = false
[dependencies.ureq]
version = "3.1"
features = ["rustls"]
optional = true
default-features = false
[dev-dependencies.buffa-build]
version = "=0.9.2"
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.geo]
version = "0.33"
default-features = false
[dev-dependencies.insta]
version = "1.43"
[dev-dependencies.osmpbf]
version = "0.3.8"
default-features = false
[dev-dependencies.osmpbfreader]
version = "0.19"
[dev-dependencies.rand]
version = "0.10"
[dev-dependencies.test_each_file]
version = "0.3.5"
[target.'cfg(target_os = "linux")'.dependencies.rustix]
version = "1.1"
features = [
"fs",
"std",
"system",
]
optional = true
default-features = false
[lints.clippy]
absolute_paths = "warn"
as_underscore = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
create_dir = "warn"
dbg_macro = "warn"
disallowed_methods = "deny"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
exit = "warn"
filetype_is_file = "warn"
format_push_string = "warn"
if_then_some_else_none = "warn"
lossy_float_literal = "warn"
mem_forget = "warn"
missing_errors_doc = "allow"
mixed_read_write_in_expression = "warn"
module_name_repetitions = "allow"
multiple_unsafe_ops_per_block = "warn"
negative_feature_names = "warn"
panic = "warn"
panic_in_result_fn = "warn"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_feature_names = "warn"
redundant_test_prefix = "warn"
redundant_type_annotations = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_and_then = "warn"
same_name_method = "warn"
str_to_string = "warn"
todo = "warn"
try_err = "warn"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unused_trait_names = "warn"
use_self = "warn"
verbose_file_reads = "warn"
wildcard_enum_match_arm = "warn"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
unused_qualifications = "warn"