Giter VIP home page Giter VIP logo

core-text-rs's Introduction

The Servo Parallel Browser Engine Project

Servo is a prototype web browser engine written in the Rust language. It is currently developed on 64-bit macOS, 64-bit Linux, 64-bit Windows, and Android.

Servo welcomes contribution from everyone. Check out The Servo Book to get started, or go to servo.org for news and guides.

Getting started

For more detailed build instructions, see the Servo book under Setting up your environment, Building Servo, and Building for Android.

macOS

  • Download and install python, Xcode, and brew
  • Install rustup: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • Restart your shell to make sure cargo is available
  • Install the other dependencies: ./mach bootstrap
  • Build servoshell: ./mach build

Linux

  • Install curl and python:
    • Arch: sudo pacman -S --needed curl python python-pip
    • Debian, Ubuntu: sudo apt install curl python3-pip python3-venv
    • Fedora: sudo dnf install curl python3 python3-pip python3-devel
    • Gentoo: sudo emerge net-misc/curl dev-python/pip
  • Install rustup: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • Restart your shell to make sure cargo is available
  • Install the other dependencies: ./mach bootstrap
  • Build servoshell: ./mach build

Windows

  • Download and install python, choco, and rustup
    • Be sure to select Quick install via the Visual Studio Community installer
  • In the Visual Studio Installer, ensure the following components are installed:
    • Windows 10 SDK (10.0.19041.0) (Microsoft.VisualStudio.Component.Windows10SDK.19041)
    • MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest) (Microsoft.VisualStudio.Component.VC.Tools.x86.x64)
    • C++ ATL for latest v143 build tools (x86 & x64) (Microsoft.VisualStudio.Component.VC.ATL)
    • C++ MFC for latest v143 build tools (x86 & x64) (Microsoft.VisualStudio.Component.VC.ATLMFC)
  • Restart your shell to make sure cargo is available
  • Install the other dependencies: .\mach bootstrap
  • Build servoshell: .\mach build

Android

  • Ensure that the following environment variables are set:
    • ANDROID_SDK_ROOT
    • ANDROID_NDK_ROOT: $ANDROID_SDK_ROOT/ndk/25.2.9519653/ ANDROID_SDK_ROOT can be any directory (such as ~/android-sdk). All of the Android build dependencies will be installed there.
  • Install the latest version of the Android command-line tools to $ANDROID_SDK_ROOT/cmdline-tools/latest.
  • Run the following command to install the necessary components:
    sudo $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --install
     "build-tools;33.0.2" \
     "emulator" \
     "ndk;25.2.9519653" \
     "platform-tools" \
     "platforms;android-33" \
     "system-images;android-33;google_apis;x86_64"
  • Follow the instructions above for the platform you are building on

core-text-rs's People

Contributors

algesten avatar antrik avatar brson avatar faern avatar frewsxcv avatar glennw avatar gw3583 avatar jdm avatar jrmuizel avatar ketsuban avatar kmcallister avatar larsbergstrom avatar lsalzman avatar mbrubeck avatar metajack avatar ms2ger avatar natalyakovalova avatar nox avatar omakk avatar pcwalton avatar poiru avatar rthomas avatar simonsapin avatar staktrace avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

core-text-rs's Issues

So many warnings that need fixing

warning: unnecessary parentheses around `if` condition
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:277:16
    |
277 |             if (value.is_null()) {
    |                ^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(unused_parens)] on by default

warning: private type `font::__CTFont` in public interface (error E0446)
  --> target/package/core-text-5.0.1/src/font.rs:75:1
   |
75 | pub type CTFontRef = *const __CTFont;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: #[warn(private_in_public)] on by default
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: use of extern static requires unsafe function or block (error E0133)
   --> target/package/core-text-5.0.1/src/font.rs:196:50
    |
196 |         let value = get_string_by_name_key(self, kCTFontFamilyNameKey);
    |                                                  ^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(safe_extern_statics)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>

warning: use of extern static requires unsafe function or block (error E0133)
   --> target/package/core-text-5.0.1/src/font.rs:201:50
    |
201 |         let value = get_string_by_name_key(self, kCTFontSubFamilyNameKey);
    |                                                  ^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(safe_extern_statics)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>

warning: use of extern static requires unsafe function or block (error E0133)
   --> target/package/core-text-5.0.1/src/font.rs:206:50
    |
206 |         let value = get_string_by_name_key(self, kCTFontUniqueNameKey);
    |                                                  ^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(safe_extern_statics)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>

warning: use of extern static requires unsafe function or block (error E0133)
   --> target/package/core-text-5.0.1/src/font.rs:211:50
    |
211 |         let value = get_string_by_name_key(self, kCTFontPostScriptNameKey);
    |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(safe_extern_statics)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>

warning: variable does not need to be mutable
   --> target/package/core-text-5.0.1/src/font.rs:310:17
    |
310 |             let mut result = CTFontGetBoundingRectsForGlyphs(self.as_concrete_TypeRef(),
    |                 ^^^^^^^^^^
    |
    = note: #[warn(unused_mut)] on by default

warning: use of extern static requires unsafe function or block (error E0133)
   --> target/package/core-text-5.0.1/src/font.rs:360:56
    |
360 |     println!("kCTFontFamilyNameKey: {}", get_key(font, kCTFontFamilyNameKey));
    |                                                        ^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(safe_extern_statics)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>

warning: use of extern static requires unsafe function or block (error E0133)
   --> target/package/core-text-5.0.1/src/font.rs:361:59
    |
361 |     println!("kCTFontSubFamilyNameKey: {}", get_key(font, kCTFontSubFamilyNameKey));
    |                                                           ^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(safe_extern_statics)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>

warning: use of extern static requires unsafe function or block (error E0133)
   --> target/package/core-text-5.0.1/src/font.rs:362:55
    |
362 |     println!("kCTFontStyleNameKey: {}", get_key(font, kCTFontStyleNameKey));
    |                                                       ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(safe_extern_statics)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>

warning: use of extern static requires unsafe function or block (error E0133)
   --> target/package/core-text-5.0.1/src/font.rs:363:56
    |
363 |     println!("kCTFontUniqueNameKey: {}", get_key(font, kCTFontUniqueNameKey));
    |                                                        ^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(safe_extern_statics)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>

warning: use of extern static requires unsafe function or block (error E0133)
   --> target/package/core-text-5.0.1/src/font.rs:364:54
    |
364 |     println!("kCTFontFullNameKey: {}", get_key(font, kCTFontFullNameKey));
    |                                                      ^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(safe_extern_statics)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>

warning: use of extern static requires unsafe function or block (error E0133)
   --> target/package/core-text-5.0.1/src/font.rs:365:60
    |
365 |     println!("kCTFontPostScriptNameKey: {}", get_key(font, kCTFontPostScriptNameKey));
    |                                                            ^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(safe_extern_statics)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>

warning: found Rust tuple type in foreign module; consider using a struct instead
   --> target/package/core-text-5.0.1/src/font.rs:439:71
    |
439 |     fn CTFontCreateWithName(name: CFStringRef, size: CGFloat, matrix: *const CGAffineTransform) -> CTFontRef;
    |                                                                       ^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:439:100
    |
439 |     fn CTFontCreateWithName(name: CFStringRef, size: CGFloat, matrix: *const CGAffineTransform) -> CTFontRef;
    |                                                                                                    ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:441:51
    |
441 |     fn CTFontCreateWithFontDescriptor(descriptor: CTFontDescriptorRef, size: CGFloat,
    |                                                   ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found Rust tuple type in foreign module; consider using a struct instead
   --> target/package/core-text-5.0.1/src/font.rs:442:47
    |
442 |                                       matrix: *const CGAffineTransform) -> CTFontRef;
    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:442:76
    |
442 |                                       matrix: *const CGAffineTransform) -> CTFontRef;
    |                                                                            ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:445:45
    |
445 |     fn CTFontCreateCopyWithAttributes(font: CTFontRef, size: CGFloat, matrix: *const CGAffineTransform,
    |                                             ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found Rust tuple type in foreign module; consider using a struct instead
   --> target/package/core-text-5.0.1/src/font.rs:445:79
    |
445 |     fn CTFontCreateCopyWithAttributes(font: CTFontRef, size: CGFloat, matrix: *const CGAffineTransform,
    |                                                                               ^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:446:51
    |
446 |                                       attributes: CTFontDescriptorRef) -> CTFontRef;
    |                                                   ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:446:75
    |
446 |                                       attributes: CTFontDescriptorRef) -> CTFontRef;
    |                                                                           ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:453:34
    |
453 |     fn CTFontCopyAttribute(font: CTFontRef, attribute: CFStringRef) -> CFTypeRef;
    |                                  ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:454:28
    |
454 |     fn CTFontGetSize(font: CTFontRef) -> CGFloat;
    |                            ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:456:38
    |
456 |     fn CTFontGetSymbolicTraits(font: CTFontRef) -> CTFontSymbolicTraits;
    |                                      ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:457:31
    |
457 |     fn CTFontCopyTraits(font: CTFontRef) -> CFDictionaryRef;
    |                               ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:464:29
    |
464 |     fn CTFontCopyName(font: CTFontRef, nameKey: CFStringRef) -> CFStringRef;
    |                             ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:468:55
    |
468 |     fn CTFontCopyDefaultCascadeListForLanguages(font: CTFontRef, languagePrefList: CFArrayRef) -> CFArrayRef;
    |                                                       ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:477:30
    |
477 |     fn CTFontGetAscent(font: CTFontRef) -> CGFloat;
    |                              ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:478:31
    |
478 |     fn CTFontGetDescent(font: CTFontRef) -> CGFloat;
    |                               ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:479:31
    |
479 |     fn CTFontGetLeading(font: CTFontRef) -> CGFloat;
    |                               ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:480:34
    |
480 |     fn CTFontGetUnitsPerEm(font: CTFontRef) -> libc::c_uint;
    |                                  ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:482:35
    |
482 |     fn CTFontGetBoundingBox(font: CTFontRef) -> CGRect;
    |                                   ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:483:41
    |
483 |     fn CTFontGetUnderlinePosition(font: CTFontRef) -> CGFloat;
    |                                         ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:484:42
    |
484 |     fn CTFontGetUnderlineThickness(font: CTFontRef) -> CGFloat;
    |                                          ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:487:31
    |
487 |     fn CTFontGetXHeight(font: CTFontRef) -> CGFloat;
    |                               ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:492:46
    |
492 |     fn CTFontGetBoundingRectsForGlyphs(font: CTFontRef,
    |                                              ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:498:41
    |
498 |     fn CTFontGetAdvancesForGlyphs(font: CTFontRef, orientation: CTFontOrientation, glyphs: *const CGGlyph, advances: *mut CGSize, count: CFIndex) -> libc::c_double;
    |                                         ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:510:43
    |
510 |     fn CTFontGetGlyphsForCharacters(font: CTFontRef, characters: *const UniChar, glyphs: *mut CGGlyph, count: CFIndex) -> bool;
    |                                           ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:511:31
    |
511 |     fn CTFontDrawGlyphs(font: CTFontRef,
    |                               ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:515:34
    |
515 |                         context: CGContextRef);
    |                                  ^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:519:37
    |
519 |     fn CTFontCopyGraphicsFont(font: CTFontRef, attributes: *mut CTFontDescriptorRef) -> CGFontRef;
    |                                     ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:519:60
    |
519 |     fn CTFontCopyGraphicsFont(font: CTFontRef, attributes: *mut CTFontDescriptorRef) -> CGFontRef;
    |                                                            ^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:519:89
    |
519 |     fn CTFontCopyGraphicsFont(font: CTFontRef, attributes: *mut CTFontDescriptorRef) -> CGFontRef;
    |                                                                                         ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:520:51
    |
520 |     fn CTFontCreateWithGraphicsFont(graphicsFont: CGFontRef, size: CGFloat,
    |                                                   ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found Rust tuple type in foreign module; consider using a struct instead
   --> target/package/core-text-5.0.1/src/font.rs:521:45
    |
521 |                                     matrix: *const CGAffineTransform,
    |                                             ^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:522:49
    |
522 |                                     attributes: CTFontDescriptorRef) -> CTFontRef;
    |                                                 ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:522:73
    |
522 |                                     attributes: CTFontDescriptorRef) -> CTFontRef;
    |                                                                         ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font.rs:529:30
    |
529 |     fn CTFontCopyTable(font: CTFontRef, table: CTFontTableTag, options: CTFontTableOptions) -> CFDataRef;
    |                              ^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: private type `font_collection::__CTFontCollection` in public interface (error E0446)
  --> target/package/core-text-5.0.1/src/font_collection.rs:27:1
   |
27 | pub type CTFontCollectionRef = *const __CTFontCollection;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: #[warn(private_in_public)] on by default
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_collection.rs:151:78
    |
151 |     fn CTFontCollectionCreateFromAvailableFonts(options: CFDictionaryRef) -> CTFontCollectionRef;
    |                                                                              ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_collection.rs:155:66
    |
155 |     fn CTFontCollectionCreateMatchingFontDescriptors(collection: CTFontCollectionRef) -> CFArrayRef;
    |                                                                  ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_collection.rs:157:79
    |
157 |                                                  options: CFDictionaryRef) -> CTFontCollectionRef;
    |                                                                               ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: private type `font_descriptor::__CTFontDescriptor` in public interface (error E0446)
   --> target/package/core-text-5.0.1/src/font.rs:441:5
    |
441 | /     fn CTFontCreateWithFontDescriptor(descriptor: CTFontDescriptorRef, size: CGFloat,
442 | |                                       matrix: *const CGAffineTransform) -> CTFontRef;
    | |_____________________________________________________________________________________^
    |
    = note: #[warn(private_in_public)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: private type `font_descriptor::__CTFontDescriptor` in public interface (error E0446)
   --> target/package/core-text-5.0.1/src/font.rs:445:5
    |
445 | /     fn CTFontCreateCopyWithAttributes(font: CTFontRef, size: CGFloat, matrix: *const CGAffineTransform,
446 | |                                       attributes: CTFontDescriptorRef) -> CTFontRef;
    | |____________________________________________________________________________________^
    |
    = note: #[warn(private_in_public)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: private type `font_descriptor::__CTFontDescriptor` in public interface (error E0446)
   --> target/package/core-text-5.0.1/src/font.rs:519:5
    |
519 |     fn CTFontCopyGraphicsFont(font: CTFontRef, attributes: *mut CTFontDescriptorRef) -> CGFontRef;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(private_in_public)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: private type `font_descriptor::__CTFontDescriptor` in public interface (error E0446)
   --> target/package/core-text-5.0.1/src/font.rs:520:5
    |
520 | /     fn CTFontCreateWithGraphicsFont(graphicsFont: CGFontRef, size: CGFloat,
521 | |                                     matrix: *const CGAffineTransform,
522 | |                                     attributes: CTFontDescriptorRef) -> CTFontRef;
    | |__________________________________________________________________________________^
    |
    = note: #[warn(private_in_public)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: private type `font_descriptor::__CTFontDescriptor` in public interface (error E0446)
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:187:1
    |
187 | pub type CTFontDescriptorRef = *const __CTFontDescriptor;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(private_in_public)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: private type `font_descriptor::__CTFontDescriptor` in public interface (error E0446)
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:347:5
    |
347 | /     pub fn CTFontDescriptorCopyAttribute(descriptor: CTFontDescriptorRef,
348 | |                                          attribute: CFStringRef) -> CFTypeRef;
    | |______________________________________________________________________________^
    |
    = note: #[warn(private_in_public)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: private type `font_descriptor::__CTFontDescriptor` in public interface (error E0446)
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:349:5
    |
349 |     pub fn CTFontDescriptorCopyAttributes(descriptor: CTFontDescriptorRef) -> CFDictionaryRef;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(private_in_public)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: private type `font_descriptor::__CTFontDescriptor` in public interface (error E0446)
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:350:5
    |
350 | /     pub fn CTFontDescriptorCopyLocalizedAttribute(descriptor: CTFontDescriptorRef,
351 | |                                                   attribute: CFStringRef,
352 | |                                                   language: *mut CFStringRef) -> CFTypeRef;
    | |___________________________________________________________________________________________^
    |
    = note: #[warn(private_in_public)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: private type `font_descriptor::__CTFontDescriptor` in public interface (error E0446)
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:353:5
    |
353 | /     pub fn CTFontDescriptorCreateCopyWithAttributes(original: CTFontDescriptorRef,
354 | |                                                     attributes: CFDictionaryRef) -> CTFontDescriptorRef;
    | |________________________________________________________________________________________________________^
    |
    = note: #[warn(private_in_public)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: private type `font_descriptor::__CTFontDescriptor` in public interface (error E0446)
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:355:5
    |
355 | /     pub fn CTFontDescriptorCreateCopyWithFeature(original: CTFontDescriptorRef,
356 | |                                                  featureTypeIdentifier: CFNumberRef,
357 | |                                                  featureSelectorIdentifier: CFNumberRef) -> CTFontDescriptorRef;
    | |________________________________________________________________________________________________________________^
    |
    = note: #[warn(private_in_public)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: private type `font_descriptor::__CTFontDescriptor` in public interface (error E0446)
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:358:5
    |
358 | /     pub fn CTFontDescriptorCreateCopyWithVariation(original: CTFontDescriptorRef,
359 | |                                                    variationIdentifier: CFNumberRef,
360 | |                                                    variationValue: CGFloat) -> CTFontDescriptorRef;
    | |___________________________________________________________________________________________________^
    |
    = note: #[warn(private_in_public)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: private type `font_descriptor::__CTFontDescriptor` in public interface (error E0446)
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:361:5
    |
361 | /     pub fn CTFontDescriptorCreateMatchingFontDescriptor(descriptor: CTFontDescriptorRef,
362 | |                                                         mandatoryAttributes: CFSetRef) -> CTFontDescriptorRef;
    | |______________________________________________________________________________________________________________^
    |
    = note: #[warn(private_in_public)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: private type `font_descriptor::__CTFontDescriptor` in public interface (error E0446)
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:363:5
    |
363 |     pub fn CTFontDescriptorCreateWithAttributes(attributes: CFDictionaryRef) -> CTFontDescriptorRef;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(private_in_public)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: private type `font_descriptor::__CTFontDescriptor` in public interface (error E0446)
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:364:5
    |
364 |     pub fn CTFontDescriptorCreateWithNameAndSize(name: CFStringRef, size: CGFloat) -> CTFontDescriptorRef;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(private_in_public)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: private type `font_descriptor::__CTFontDescriptor` in public interface (error E0446)
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:369:5
    |
369 | /     pub fn CTFontDescriptorCreateMatchingFontDescriptors(descriptor: CTFontDescriptorRef,
370 | |                                                          mandatoryAttributes: CFSetRef) -> CFArrayRef;
    | |______________________________________________________________________________________________________^
    |
    = note: #[warn(private_in_public)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>

warning: use of extern static requires unsafe function or block (error E0133)
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:255:47
    |
255 |         let value = self.get_string_attribute(kCTFontDisplayNameAttribute);
    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(safe_extern_statics)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>

warning: use of extern static requires unsafe function or block (error E0133)
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:260:47
    |
260 |         let value = self.get_string_attribute(kCTFontNameAttribute);
    |                                               ^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(safe_extern_statics)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>

warning: use of extern static requires unsafe function or block (error E0133)
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:265:47
    |
265 |         let value = self.get_string_attribute(kCTFontStyleNameAttribute);
    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(safe_extern_statics)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>

warning: use of extern static requires unsafe function or block (error E0133)
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:270:47
    |
270 |         let value = self.get_string_attribute(kCTFontDisplayNameAttribute);
    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(safe_extern_statics)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:347:54
    |
347 |     pub fn CTFontDescriptorCopyAttribute(descriptor: CTFontDescriptorRef,
    |                                                      ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:349:55
    |
349 |     pub fn CTFontDescriptorCopyAttributes(descriptor: CTFontDescriptorRef) -> CFDictionaryRef;
    |                                                       ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:350:63
    |
350 |     pub fn CTFontDescriptorCopyLocalizedAttribute(descriptor: CTFontDescriptorRef,
    |                                                               ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:353:63
    |
353 |     pub fn CTFontDescriptorCreateCopyWithAttributes(original: CTFontDescriptorRef,
    |                                                               ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:354:85
    |
354 |                                                     attributes: CFDictionaryRef) -> CTFontDescriptorRef;
    |                                                                                     ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:355:60
    |
355 |     pub fn CTFontDescriptorCreateCopyWithFeature(original: CTFontDescriptorRef,
    |                                                            ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:356:73
    |
356 |                                                  featureTypeIdentifier: CFNumberRef,
    |                                                                         ^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:357:77
    |
357 |                                                  featureSelectorIdentifier: CFNumberRef) -> CTFontDescriptorRef;
    |                                                                             ^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:357:93
    |
357 |                                                  featureSelectorIdentifier: CFNumberRef) -> CTFontDescriptorRef;
    |                                                                                             ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:358:62
    |
358 |     pub fn CTFontDescriptorCreateCopyWithVariation(original: CTFontDescriptorRef,
    |                                                              ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:359:73
    |
359 |                                                    variationIdentifier: CFNumberRef,
    |                                                                         ^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:360:80
    |
360 |                                                    variationValue: CGFloat) -> CTFontDescriptorRef;
    |                                                                                ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:361:69
    |
361 |     pub fn CTFontDescriptorCreateMatchingFontDescriptor(descriptor: CTFontDescriptorRef,
    |                                                                     ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:362:91
    |
362 |                                                         mandatoryAttributes: CFSetRef) -> CTFontDescriptorRef;
    |                                                                                           ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:363:81
    |
363 |     pub fn CTFontDescriptorCreateWithAttributes(attributes: CFDictionaryRef) -> CTFontDescriptorRef;
    |                                                                                 ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:364:87
    |
364 |     pub fn CTFontDescriptorCreateWithNameAndSize(name: CFStringRef, size: CGFloat) -> CTFontDescriptorRef;
    |                                                                                       ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

warning: found zero-size struct in foreign module, consider adding a member to this struct
   --> target/package/core-text-5.0.1/src/font_descriptor.rs:369:70
    |
369 |     pub fn CTFontDescriptorCreateMatchingFontDescriptors(descriptor: CTFontDescriptorRef,
    |                                                                      ^^^^^^^^^^^^^^^^^^^
    |
    = note: #[warn(improper_ctypes)] on by default

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.