summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2021-02-03 21:08:52 -0600
committerChun-wei Fan <fanchunwei@src.gnome.org>2021-07-09 10:35:20 +0800
commit97a619ab9f7880ac413b8a97834d315aa36ab5aa (patch)
tree3661595056f21328622707d3cf1db5c8583b66fc
parent169ab91a2726ad5dd70b708cb423fac85a4bf307 (diff)
downloadlibrsvg-97a619ab9f7880ac413b8a97834d315aa36ab5aa.tar.gz
Cargo.toml - add cargo-c metadata
-rw-r--r--Cargo.toml20
1 files changed, 19 insertions, 1 deletions
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: