{"id":21686721,"url":"https://github.com/jgosmann/libalgobsec-sys","last_synced_at":"2025-10-06T14:20:25.084Z","repository":{"id":62442004,"uuid":"360646596","full_name":"jgosmann/libalgobsec-sys","owner":"jgosmann","description":"Unsafe bindings to the Bosch BSEC library","archived":false,"fork":false,"pushed_at":"2023-02-08T19:47:17.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-29T18:08:50.358Z","etag":null,"topics":["bsec","bsec-library","embedded","ffi-bindings"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jgosmann.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-22T18:35:02.000Z","updated_at":"2023-02-08T18:52:37.000Z","dependencies_parsed_at":"2024-11-25T16:35:24.631Z","dependency_job_id":"78307eb2-1b95-48fc-b534-12602038b0f5","html_url":"https://github.com/jgosmann/libalgobsec-sys","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"b1089e40d89d67df288b9d9b96a8c12f058ccda4"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgosmann%2Flibalgobsec-sys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgosmann%2Flibalgobsec-sys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgosmann%2Flibalgobsec-sys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgosmann%2Flibalgobsec-sys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgosmann","download_url":"https://codeload.github.com/jgosmann/libalgobsec-sys/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244609459,"owners_count":20480782,"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":["bsec","bsec-library","embedded","ffi-bindings"],"created_at":"2024-11-25T16:32:10.214Z","updated_at":"2025-10-06T14:20:20.050Z","avatar_url":"https://github.com/jgosmann.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libalgobsec-sys\n\nUnsafe bindings to the [Bosch BSEC library](https://www.bosch-sensortec.com/software-tools/software/bsec/).\n\n\n## Important license information\n\nThe BSEC library is proprietary. Thus, it cannot be included in this crate and\nits documentation need to be obtained separately. You are responsible for\nadhering to that license in your products despite the source code of this crate\nto generate the necessary bindings is published under a permissive license.\n\nNote that the source code of this crate does not contain any of the BSEC source\ncode, API declarations, or documentation.\n\n* [BSEC website to obtain your copy](https://www.bosch-sensortec.com/software-tools/software/bsec/)\n* [BSEC license terms at the time of writing](https://www.bosch-sensortec.com/media/boschsensortec/downloads/bsec/2017-07-17_clickthrough_license_terms_environmentalib_sw_clean.pdf)\n\n\n## Usage\n\nTo be able to use this crate it needs to know where to find the BSEC header\nfiles and library on your system. These paths are provided as the configuration\noptions `bsec_include_path` and `bsec_library_path` to the Rust compiler.\n\nYou can do this by creating a `.cargo/config` file in your crate with the\nfollowing content (adjust the paths accordingly):\n\n```toml\n[build]\nrustflags = [\n    '--cfg', 'bsec_include_path=\"/path/to/BSEC_1.4.8.0_Generic_Release/algo/normal_version/inc\"',\n    '--cfg', 'bsec_library_path=\"/path/to/BSEC_1.4.8.0_Generic_Release/algo/normal_version/bin/target-arch\"',\n]\n```\n\n### Cross-compilation with cross\n\nYou need to ensure that all BSEC dependencies are installed in the container\nimage used for the build. For example:\n\n```toml\n# Cross.toml\n[target.arm-unknown-linux-gnueabihf]\npre-build = [\"apt-get update \u0026\u0026 apt-get install --assume-yes libffi-dev\"]\n```\n\nIn `.cargo/config` you need to configure the path to BSEC within the container:\n\n```toml\n[build]\nrustflags = [\n    '--cfg', 'bsec_include_path=\"/bsec/algo/normal_version/inc\"',\n    '--cfg', 'bsec_library_path=\"/bsec/algo/normal_version/bin/target-arch\"',\n]\n```\n\nIf you have BSEC not included in the container image,\nyou can mount it from your host system,\nwhen you invoke cross.\nFor example:\n\n```shell\nDOCKER_OPTS='-v /path/to/BSEC_1.4.8.0_Generic_Release:/bsec' cross build --target=arm-unknown-linux-gnueabihf\n\n```\n\n## Building local BSEC documentation\n\nIf you build the documentation locally with `cargo doc`, after the above setup,\nBSEC documentation extracted from the header files will be included.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgosmann%2Flibalgobsec-sys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgosmann%2Flibalgobsec-sys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgosmann%2Flibalgobsec-sys/lists"}