{"id":18023100,"url":"https://github.com/rustyconover/libh3-sys","last_synced_at":"2025-03-26T23:31:00.137Z","repository":{"id":62442067,"uuid":"245873225","full_name":"rustyconover/libh3-sys","owner":"rustyconover","description":"Rust bindings for Uber's Hexagonal Hierarchical Spatial Index - H3","archived":false,"fork":false,"pushed_at":"2020-04-03T13:48:47.000Z","size":8,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T20:59:35.183Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rustyconover.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-08T19:16:30.000Z","updated_at":"2024-02-21T03:13:03.000Z","dependencies_parsed_at":"2022-11-01T22:01:02.352Z","dependency_job_id":null,"html_url":"https://github.com/rustyconover/libh3-sys","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustyconover%2Flibh3-sys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustyconover%2Flibh3-sys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustyconover%2Flibh3-sys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustyconover%2Flibh3-sys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rustyconover","download_url":"https://codeload.github.com/rustyconover/libh3-sys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245753868,"owners_count":20666827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-30T07:07:19.233Z","updated_at":"2025-03-26T23:30:59.837Z","avatar_url":"https://github.com/rustyconover.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libh3-sys - Wrapper for Uber’s Hexagonal Hierarchical Spatial Index in Rust\n\nThis crate provides unsafe Rust functions that call the underlying H3 library.\n\nAn interface to H3 using safe Rust is provided by [libh3](https://docs.rs/libh3/).\n\nContributions are welcome.\n\nSee the documentation here:\n\n[https://docs.rs/libh3-sys/](https://docs.rs/libh3-sys/)\n\n## Example `build.rs`\nAssume you have vendored the [H3 project](https://github.com/uber/h3) into your crate's source tree at\n`deps/h3`. You can now write a `build.rs` script which will statically build and link the external dependency\ninto your own crate, thus removing any dependency on any system installation of H3.\n\n```rust\nuse cmake::Config;\n\nfn main() {\n    let build_type = if cfg!(debug_assertions) {\n        \"Debug\"\n    } else {\n        \"Release\"\n    };\n\n    let dst = Config::new(\"deps/h3\")\n        .define(\"BUILD_TESTING\", \"OFF\")\n        .define(\"BUILD_GENERATORS\", \"OFF\")\n        .define(\"BUILD_BENCHMARKS\", \"OFF\")\n        .define(\"BUILD_FILTERS\", \"OFF\")\n        .define(\"ENABLE_LINTING\", \"OFF\")\n        .define(\"ENABLE_DOCS\", \"OFF\")\n        .define(\"ENABLE_COVERAGE\", \"OFF\")\n        .define(\"BUILD_TYPE\", build_type)\n        .build();\n    println!(\"cargo:rustc-link-search=native={}/lib\", dst.display());\n    println!(\"cargo:cargo:include={}/include\", dst.display());\n    println!(\"cargo:rustc-link-lib=static=h3\");\n}\n```\n\nAnd add this to the `build-dependencies` section of your `Cargo.toml`:\n```toml\n[build-dependencies]\ncmake = \"0.1\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustyconover%2Flibh3-sys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frustyconover%2Flibh3-sys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustyconover%2Flibh3-sys/lists"}