diff --git a/Cargo.toml b/Cargo.toml index 41004ae..93df5b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,14 +1,14 @@ [package] name = "supercluster" description = "A very fast Rust crate for geospatial point clustering" -version = "1.0.7" +version = "1.0.8" edition = "2021" license = "MIT" readme = "README.md" authors = ["Chargetrip "] keywords = ["supercluster", "geospatial", "geo", "tile", "mvt"] exclude = [".github/**"] -documentation = "https://docs.rs/supercluster/1.0.7" +documentation = "https://docs.rs/supercluster/1.0.8" repository = "https://github.com/chargetrip/supercluster-rust" [dependencies] diff --git a/src/kdbush.rs b/src/kdbush.rs index ec0ef83..88bb7de 100644 --- a/src/kdbush.rs +++ b/src/kdbush.rs @@ -2,7 +2,7 @@ type Point = [f64; 2]; /// A very fast static spatial index for 2D points based on a flat KD-tree -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct KDBush { /// Node size for the KD-tree. Determines the number of points in a leaf node pub node_size: usize, diff --git a/src/lib.rs b/src/lib.rs index 2604276..4954e4e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,7 +22,7 @@ const OFFSET_NUM: usize = 5; const OFFSET_PROP: usize = 6; /// Supercluster configuration options -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct Options { /// Min zoom level to generate clusters on pub min_zoom: i32, @@ -97,7 +97,7 @@ pub struct Tile { pub features: Vec, } -#[derive(Debug)] +#[derive(Clone, Debug)] /// A spatial clustering configuration and data structure pub struct Supercluster { /// Configuration settings