[librsvg/cargo-c: 63/66] Cargo.toml - add cargo-c metadata




commit 1559b6f3c9cdbf57a1e2c5996fe6ed0f96c3b556
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Feb 3 21:08:52 2021 -0600

    Cargo.toml - add cargo-c metadata

 Cargo.toml | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/Cargo.toml b/Cargo.toml
index e74794ef..36788e15 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -29,8 +29,26 @@ fontconfig = { version = "1.7" }
 pangoft2 = { version = "1.44" }
 
 [lib]
+name = "rsvg"
+
+[features]
+default = []
+capi = []
+
+[package.metadata.capi.header]
+# For now we have hand-written .h files, so disable generation of headers
+enabled = false
+
+[package.metadata.capi.pkg_config]
 name = "librsvg"
-crate-type = [ "staticlib", "rlib" ]
+description = "library that renders svg files"
+# version = "..." # defaults to the crate version
+requires = "glib-2.0, gio-2.0, gdk-pixbuf-2.0, cairo"
+# requires_private = ""
+
+[package.metadata.capi.library]
+name = "rsvg"
+# version = "..."
 
 [dependencies]
 # Keep these in sync with respect to the cairo-rs version:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]