{"id":21066363,"url":"https://github.com/code-disaster/fips-rust","last_synced_at":"2026-02-02T08:02:32.645Z","repository":{"id":80772539,"uuid":"161857995","full_name":"code-disaster/fips-rust","owner":"code-disaster","description":"A fips module to compile Rust libraries.","archived":false,"fork":false,"pushed_at":"2018-12-15T09:48:11.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-29T04:39:46.074Z","etag":null,"topics":["fips"],"latest_commit_sha":null,"homepage":"","language":"CMake","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/code-disaster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.CMakeRust","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":"2018-12-15T01:21:49.000Z","updated_at":"2024-02-10T17:29:51.000Z","dependencies_parsed_at":"2023-06-06T00:15:17.862Z","dependency_job_id":null,"html_url":"https://github.com/code-disaster/fips-rust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/code-disaster/fips-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-disaster%2Ffips-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-disaster%2Ffips-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-disaster%2Ffips-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-disaster%2Ffips-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-disaster","download_url":"https://codeload.github.com/code-disaster/fips-rust/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-disaster%2Ffips-rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29007380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T06:37:10.400Z","status":"ssl_error","status_checked_at":"2026-02-02T06:37:09.383Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["fips"],"created_at":"2024-11-19T17:59:26.866Z","updated_at":"2026-02-02T08:02:32.631Z","avatar_url":"https://github.com/code-disaster.png","language":"CMake","readme":"# fips-rust\n\nA [fips](https://github.com/floooh/fips) module to compile Rust/Cargo libraries, using [CMake Rust Language Support](https://github.com/Devolutions/CMakeRust).\n\n## About\n\nThis small module allows for easy integration of _Rust libraries_ in a fips/CMake project.\n\n## Example\n\nThe `./example` folder is a small \"stand-alone\" fips workspace to demonstrate the use of this module. It contains a Rust library `hello_lib` which is compiled with Cargo, and a C sample program `hello` which links this library.\n\n~~~ sh\ncd example/hello\n./fips build\n./fips run hello\n~~~\n\n## Usage\n\nJust add `fips-rust` as a dependency to your project or library.\n\n~~~\n# fips.yml\n\n---\nimports:\n  fips-rust:\n    git: https://github.com/code-disaster/fips-rust.git\n~~~\n\nTo build a Rust library, use the `fips_rust_cargo_lib()` macro instead of the usual `fips_begin_lib()/fips_end_lib()` pair.\n\n~~~\n# CMakeLists.txt\n\nfips_rust_cargo_lib(library-name)\n~~~\n\nYou'll probably need to link some additional system libraries required by the Rust runtime.\n\n~~~\n# CMakeLists.txt\n\nif (FIPS_WINDOWS)\n  fips_libs(userenv) # ws2_32 already linked by default\nendif()\n\nif (FIPS_LINUX)\n  fips_libs(dl) # pthread already linked by default\nendif()\n\nif (FIPS_OSX)\n  fips_libs(resolv)\nendif()\n~~~\n\nLastly, don't forget to configure your Cargo project to build a static library.\n\n~~~\n# Cargo.toml\n\n[lib]\ncrate-type = [\"staticlib\"]\n~~~\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-disaster%2Ffips-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-disaster%2Ffips-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-disaster%2Ffips-rust/lists"}