cargo-c
brew install cargo-c
v0.10.23
MIT
Helper program to build and install c-like libraries
747
30-day installs · #1456
2.0k
90-day · #1589
12.6k
365-day · #1306
543
★ GitHub stars · updated 2mo ago
Runtime dependencies
Build dependencies
GitHub topics
cargo
cargo-subcommand
hacktoberfest
Links
- https://github.com/lu-zero/cargo-c
- GitHub: lu-zero/cargo-c
- Brew formula source: Formula/c/cargo-c.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"pkgconf",
"rust"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"libgit2",
"libssh2",
"openssl@3"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Helper program to build and install c-like libraries",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:07+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "cargo-c",
"github_default_branch": "master",
"github_last_commit_at": "2026-06-18T21:42:52Z",
"github_readme_excerpt": "# Cargo C-ABI helpers\n\n[](LICENSE)\n[](https://crates.io/crates/cargo-c)\n[](https://github.com/lu-zero/cargo-c/actions?query=workflow:Rust)\n[](https://rust-av.zulipchat.com/#narrow/stream/254255-cargo-c)\n[](https://deps.rs/repo/github/lu-zero/cargo-c)\n\n[cargo](https://doc.rust-lang.org/cargo) applet to build and install C-ABI compatible dynamic and static libraries.\n\nIt produces and installs a correct [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/) file, a static library and a dynamic library, and a C header to be used by any C (and C-compatible) software.\n\n## Installation\n**cargo-c** may be installed from [crates.io](https://crates.io/crates/cargo-c).\n``` sh\ncargo install cargo-c\n```\n\nThe `rustc` version supported is the same as the one supported by the `cargo` version embedded in the package version, or as set in the\n[rust-version](https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field) field.\n\nYou must have the **cargo** build [requirements](https://github.com/rust-lang/cargo#compiling-from-source) satisfied in order to build **cargo-c**:\n* `git`\n* `pkg-config` (on Unix, used to figure out the host-provided headers/libraries)\n* `curl` (on Unix)\n* OpenSSL headers (only for Unix, this is the `libssl-dev` package on deb-based distributions)\n\nYou may pass `--features=vendored-openssl` if you have problems building openssl-sys using the host-provided OpenSSL.\n\n``` sh\ncargo install cargo-c --features=vendored-openssl\n```\n\n## Usage\n``` sh\n# build the library, create the .h header, create the .pc file\n$ cargo cbuild --destdir=${D} --prefix=/usr --libdir=/usr/lib64\n```\n``` sh\n# build the l",
"github_repo": "lu-zero/cargo-c",
"github_stars": 543,
"github_topics": [
"cargo",
"cargo-subcommand",
"hacktoberfest"
],
"homepage": "https://github.com/lu-zero/cargo-c",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 747,
"installs_365d": 12637,
"installs_90d": 2013,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "cargo-c",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 1456,
"rank_365d": 1306,
"rank_90d": 1589,
"raw_hash": "1ed8bbcd0496db44",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/c/cargo-c.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [
"curl"
],
"version_head": null,
"version_stable": "0.10.23",
"versioned_formulae": [],
"why_use_this": null
}