[librsvg/rustify-rsvg-convert: 11/14] Export the LegacySize crate from c_api just for rsvg_convert




commit 3d5169748bb9b98944778609ed5dc6b187f41199
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Nov 6 13:16:06 2020 -0600

    Export the LegacySize crate from c_api just for rsvg_convert

 src/c_api/mod.rs | 2 +-
 src/lib.rs       | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/c_api/mod.rs b/src/c_api/mod.rs
index b7003df8..d437b56f 100644
--- a/src/c_api/mod.rs
+++ b/src/c_api/mod.rs
@@ -53,4 +53,4 @@ mod color_utils;
 mod dpi;
 mod handle;
 pub mod pixbuf_utils;
-mod sizing;
+pub mod sizing;
diff --git a/src/lib.rs b/src/lib.rs
index 2d768f42..0e2595b5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -155,3 +155,8 @@ pub mod doctest_only {
     pub use crate::length::{Both, CssLength, Horizontal, Length, LengthUnit, ULength, Vertical};
     pub use crate::parsers::{Parse, ParseValue};
 }
+
+#[doc(hidden)]
+pub mod rsvg_convert_only {
+    pub use crate::c_api::sizing::LegacySize;
+}


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