File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,14 +22,12 @@ links = "freetype2"
2222
2323[dependencies ]
2424libc = " 0.2"
25+ tectonic_bridge_png = { path = " ../bridge_png" , version = " 0.0.0-dev.0" }
26+ tectonic_bridge_flate = { path = " ../bridge_flate" , version = " 0.0.0-dev.0" }
2527
2628[build-dependencies ]
2729tectonic_dep_support = { path = " ../dep_support" , version = " 0.0.0-dev.0" }
2830
29- [dev-dependencies ]
30- tectonic_bridge_png = { path = " ../bridge_png" , version = " 0.0.0-dev.0" }
31- tectonic_bridge_flate = { path = " ../bridge_flate" , version = " 0.0.0-dev.0" }
32-
3331[package .metadata .internal_dep_versions ]
3432tectonic_dep_support = " 5faf4205bdd3d31101b749fc32857dd746f9e5bc"
3533tectonic_bridge_png = " 42a1f6a8027b2ef01436be16c6e1bc27918f293f"
Original file line number Diff line number Diff line change @@ -17,6 +17,15 @@ use std::{ptr, slice};
1717
1818mod sys;
1919
20+ /// Import things from our bridge crates to ensure that we actually link with
21+ /// them.
22+ mod linkage {
23+ #[ allow( unused_imports) ]
24+ use tectonic_bridge_flate as clippyrenamehack1;
25+ #[ allow( unused_imports) ]
26+ use tectonic_bridge_png as clippyrenamehack2;
27+ }
28+
2029pub use sys:: FT_BBox as BBox ;
2130pub use sys:: FT_Fixed as Fixed ;
2231pub use sys:: FT_Glyph_BBox_Mode as BBoxMode ;
@@ -624,15 +633,6 @@ mod tests {
624633 use std:: fs;
625634 use std:: path:: { Path , PathBuf } ;
626635
627- /// Import things from our bridge crates to ensure that we actually link with
628- /// them.
629- mod linkage {
630- #[ allow( unused_imports) ]
631- use tectonic_bridge_flate as clippyrenamehack1;
632- #[ allow( unused_imports) ]
633- use tectonic_bridge_png as clippyrenamehack2;
634- }
635-
636636 fn assets_dir ( ) -> PathBuf {
637637 Path :: new ( env ! ( "CARGO_MANIFEST_DIR" ) )
638638 . join ( "../../tests/assets" )
Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ mod inner {
9393 }
9494
9595 // Include paths exported by our internal dependencies:
96- let freetype2_include_path = env:: var ( "DEP_FREETYPE2_INCLUDE_PATH" ) . unwrap ( ) ;
9796 let graphite2_include_path = env:: var ( "DEP_GRAPHITE2_INCLUDE_PATH" ) . unwrap ( ) ;
9897 let graphite2_static = !env:: var ( "DEP_GRAPHITE2_DEFINE_STATIC" ) . unwrap ( ) . is_empty ( ) ;
9998
@@ -105,10 +104,6 @@ mod inner {
105104 . define ( "HAVE_GRAPHITE2" , "1" )
106105 . file ( "harfbuzz/src/harfbuzz.cc" ) ;
107106
108- for item in freetype2_include_path. split ( ';' ) {
109- cfg. include ( item) ;
110- }
111-
112107 for item in graphite2_include_path. split ( ';' ) {
113108 cfg. include ( item) ;
114109 }
@@ -143,10 +138,6 @@ mod inner {
143138 include_dir. to_str( ) . expect( "non-string-friendly OUT_DIR" )
144139 ) ;
145140
146- for item in freetype2_include_path. split ( ';' ) {
147- print ! ( ";{item}" ) ;
148- }
149-
150141 for item in graphite2_include_path. split ( ';' ) {
151142 print ! ( ";{item}" ) ;
152143 }
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ pub use sys::hb_segment_properties_t as SegmentProperties;
3434/// link with them, to pull in the symbols defined in the C APIs.
3535mod linkage {
3636 #[ allow( unused_imports) ]
37- use tectonic_bridge_freetype2 as clippyrenamehack2 ;
37+ use tectonic_bridge_freetype2 as clippyrenamehack1 ;
3838 #[ allow( unused_imports) ]
39- use tectonic_bridge_graphite2 as clippyrenamehack1 ;
39+ use tectonic_bridge_graphite2 as clippyrenamehack2 ;
4040 #[ cfg( target_os = "macos" ) ]
4141 #[ allow( unused_imports) ]
4242 use tectonic_mac_core as clippyrenamehack3;
You can’t perform that action at this time.
0 commit comments