From c0777c7ce26bf40efed7ba38d0a70e5af83feb78 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Tue, 3 Sep 2024 09:35:29 +0200 Subject: [PATCH] Add the cargo-c metadata (#812) Fixes #592 --- crates/c-api/Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/c-api/Cargo.toml b/crates/c-api/Cargo.toml index 23451439..42dbd07c 100644 --- a/crates/c-api/Cargo.toml +++ b/crates/c-api/Cargo.toml @@ -26,3 +26,10 @@ system-fonts = ["resvg/system-fonts"] # enables font files memmaping for faster loading (only for `text`) memmap-fonts = ["resvg/memmap-fonts"] raster-images = ["resvg/raster-images"] +capi = [] + +[package.metadata.capi.header] +generation = false + +[package.metadata.capi.install.include] +asset = [{ from="resvg.h" }]