Skip to content

Support cargo (Rust) libraries #20619

@HappySeaFox

Description

@HappySeaFox

Is your feature request related to a problem? Please describe.

Some Rust libraries can be built with cargo tool into a C library with dll+lib files. For example, resvg. It would be great to enable vcpkg to build such libraries.

For example: to compile resvg C binding:

  1. Download and run rustup-init.exe from https://www.rust-lang.org/tools/install
  2. Compile resvg:
git clone https://github.com/RazrFalcon/resvg.git
cd resvg\c-api
%USERPROFILE%\.cargo\bin\cargo build --release

This creates resvg.dll and resvg.dll.lib.

Proposed solution
Add cargo as build tool.

Describe alternatives you've considered
-

Additional context
-

Metadata

Metadata

Assignees

Labels

category:tool-updateThe issue is with build tool or build script, which requires update or should be executed correctlyno-staleIssue will not be marked as stale

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions