[librsvg/cargo-c-msvc: 1/10] Cargo.toml - add cargo-c metadata




commit 97a619ab9f7880ac413b8a97834d315aa36ab5aa
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 9afb5480..24d76f9e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -35,8 +35,26 @@ freetype2 = "20.0.14"
 libxml2 = { name = "libxml-2.0", version = "2.9" }
 
 [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]