Commit Graph

2171 Commits

Author SHA1 Message Date
Martin Robinson 9b4af6e91e Rename master branch to main (#658)
This is in line with a decision made about the Servo organization by the Servo TSC. We consider `main` to be shorter, easier to type, and more modern, so we are standardizing on this branch name.
2024-04-04 14:40:42 +00:00
nashaofu 0933af08be fix: Correcting errors in window CGWindowListOption values (#653) 2024-01-13 12:21:17 +00:00
Jeff Muizelaar d4ce710182 Bump required version of core-foundation for link feature 2023-11-30 17:06:49 -05:00
Jeff Muizelaar 795398aa37 Bump the version of core-foundation and the dependency on core-foundation-sys 2023-11-30 10:56:38 -05:00
Ryo "Genbuchan" Shigematsu 64dd01a6a9 NSScreen (cocoa): Add maximumRefreshInterval and minimumRefreshInterval (#646) 2023-11-24 06:55:29 +00:00
Bruce Mitchener 58972aef0a Update to 2018 edition. (#642)
This is the minimum fix required. It updates to use crate-relative
imports.
2023-10-24 00:30:22 +00:00
Jeff Muizelaar eb41f50561 Bump core-graphics-types version 2023-10-12 09:35:29 -04:00
Bruce Mitchener 723886f243 Only import SInt32 on macOS. (#641)
It is only used on macOS, so having it when building for other
targets (like iOS) results in a warning.
2023-10-10 16:13:57 +00:00
Bruce Mitchener 6484a6e9ac ci: Update to actions/checkout@v4 (#640) 2023-10-10 15:26:05 +00:00
Bruce Mitchener 3ff7cc2795 docs: Fix various markdown issues. (#639) 2023-10-10 15:22:46 +00:00
Leo Kettmeir c4f4ad20b6 feat: add link feature (#608)
adjust docs

Update cocoa/Cargo.toml

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>

fmt
2023-10-10 14:46:20 +00:00
Jeff Muizelaar fbde5035c3 Bump cocoa-foundation version 2023-09-22 10:35:29 -04:00
jfkthame 5be8e2cd8f Bump core-text version (#638)
Just exposing a couple of additional APIs.

(Motivation: to enable us to try using the `_and_options` API when instantiating fonts in webrender, for https://bugzilla.mozilla.org/show_bug.cgi?id=1803406.)
2023-09-22 14:00:13 +00:00
jfkthame 099bd27d93 rustfmt fixes (#637) 2023-09-19 20:33:28 +00:00
jfkthame 91fb8c385a Expose the CTFont-creation functions with options parameter (#636) 2023-09-19 19:41:56 +00:00
Bruce Mitchener e589abe82e Make license files consistent. (#625)
Each crate now has a symlink to the root level license files.
Previously, some did, some had copies, and some had nothing.

Fixes #503.
2023-08-13 12:20:16 +00:00
micolous 2ead1f968d Run tests for MSRV, on macOS versions, and fix toolchain (#614)
* run tests on MSRV, for all macOS versions

* use dtolnay/rust-toolchain rather than unmaintained actions-rs/toolchain

* remove "msrv" build target as blocker for build result, as it is part of build

* update outdated actions/checkout
2023-08-13 12:18:12 +00:00
Bruce Mitchener b6d2529ca9 More clippy fixes. (#629) 2023-08-07 17:42:26 +00:00
Bruce Mitchener 855319c0e2 Apple renamed CTFontOrientation values. (#630)
* `kCTFontDefaultOrientation` -> `kCTFontOrientationDefault`
* `kCTFontOrientationHorizontal` -> `kCTFontOrientationHorizontal`
* `kCTFontOrientationVertical` -> `kCTFontOrientationVertical`

The old names were deprecated in macOS 10.11, iOS 9. The new names
were introduced in macOS 10.8, iOS 6.

Fixes #438.
2023-08-07 17:41:35 +00:00
Bruce Mitchener 18df9aafe7 Some clippy fixes. (#624) 2023-08-03 14:20:26 +00:00
Bruce Mitchener 062041a921 docs.rs: Document with all-features enabled. (#626)
This will help people find the functionality that is feature-gated.

Fixes #540.
2023-08-01 15:29:29 +00:00
Jeff Muizelaar 2907f4d0c0 Bump version of core-foundation-sys to 0.8.6 (#622) 2023-07-29 01:49:53 +00:00
micolous b009c87f2d Auto-format code with "cargo fmt" and check in CI (#615)
* add rustfmt check to CI

* Run "cargo fmt" (rustfmt) over core-foundation-rs
2023-07-25 02:22:25 +00:00
Jeff Muizelaar 127f2be94c Revert "mach_port: Removed redundant pub use" (#620)
This reverts commit 6d00383baf.

It broke semver because it removed the export of CFIndex which
which older versions of the core-foundation crate are depending on.

Fixes #619
2023-07-24 17:00:42 +00:00
Mukilan Thiyagarajan 9effb78876 Enable merge queue (#616)
* Enable merge queue

* ensure msrv and semver checks pass
2023-07-11 09:46:05 +00:00
bors-servo 69c3c11b90 Auto merge of #610 - micolous:cfrunloop-send, r=jrmuizel
core-foundation: mark CFRunLoop as Send + Sync

Fixes #550
2023-07-11 04:37:38 +02:00
Michael Farrell a1df3385f7 mark CFRunLoop as Send+Sync, and test it 2023-07-11 11:42:29 +10:00
bors-servo c49552354f Auto merge of #613 - jrmuizel:bump-cg-version, r=mstange
Bump core-graphics version to get cg_event_tap_callback_internal fix.

None
2023-07-07 17:48:39 +02:00
Jeff Muizelaar 50fec8dd8d Bump core-graphics version to get cg_event_tap_callback_internal fix. 2023-07-07 11:46:55 -04:00
bors-servo 15d824ad35 Auto merge of #612 - jrmuizel:rm-no-mangle, r=mstange
Drop #[no_mangle] from cg_event_tap_callback_internal

This allows multiple versions of core-graphics to be linked into the same binaries without getting "duplicate symbol: cg_event_tap_callback_internal"
2023-07-07 17:45:44 +02:00
Jeff Muizelaar f3cf0f1d38 Drop #[no_mangle] from cg_event_tap_callback_internal
This allows multiple versions of core-graphics to be linked into the
same binaries without getting "duplicate symbol: cg_event_tap_callback_internal"
2023-07-07 11:36:20 -04:00
bors-servo 1972e384bd Auto merge of #611 - jrmuizel:msrv, r=mstange
Add MSRV check to CI

None
2023-07-06 20:25:08 +02:00
Jeff Muizelaar e3995c6196 Add MSRV check to CI 2023-07-04 11:16:19 -04:00
bors-servo 8f7400bd43 Auto merge of #607 - michaelwright235:bump085, r=jrmuizel
Bump core-foundation-sys to 0.8.5

None
2023-06-29 02:01:39 +02:00
michaelwright235 695f9500d6 Bump core-foundation-sys to 0.8.5 2023-06-29 01:12:16 +03:00
bors-servo a0fd29602e Auto merge of #605 - michaelwright235:xml, r=jdm
sys: Introduce CFXML functionality

Implements CFXMLNode, CFXMLTree and CFXMLParser functions and related constants and structures. Even though all of them are considered deprecated, these may be the last bits of fully implemented core-foundation-sys crate (with functionality of macOS 10.7 and 10.8 obviously).
2023-06-21 01:46:37 +02:00
michaelwright235 28767f86be sys: Introduce CFXML functionality
Implements CFXMLNode, CFXMLTree and CFXMLParser functions and related
constants and structures. All of them are considered deprecated, even
though these may be the last bits of fully implemented
core-foundation-sys crate (with functionality of macOS 10.7 and 10.8
obviously).
2023-06-21 01:39:55 +03:00
bors-servo 864c7f2fda Auto merge of #603 - jrmuizel:semver-parallel, r=jdm
Add semver checks to CI

This won't catch everything but it's better than nothing
2023-06-20 19:08:40 +02:00
bors-servo 02ca12b529 Auto merge of #601 - jrmuizel:more-macos, r=jdm
Add macOS 12 and 13 CI

None
2023-06-20 19:06:39 +02:00
bors-servo 782201da49 Auto merge of #602 - jrmuizel:cgt, r=mstange
Bump the version of core-graphics-types

This is needed for a release that doesn't depend on foreign-types
2023-06-20 17:22:01 +02:00
Jeff Muizelaar 4bd9ff3ca6 Add semver checks to CI
This won't catch everything but it's better than nothing
2023-06-20 11:16:40 -04:00
Jeff Muizelaar 9e55627696 Bump the version of core-graphics-types
This is needed for a release that doesn't depend on foreign-types
2023-06-20 11:11:00 -04:00
Jeff Muizelaar f4e809860d Add macOS 12 and 13 CI 2023-06-20 10:57:14 -04:00
bors-servo 423930b71a Auto merge of #600 - jrmuizel:macos-13-tests, r=jdm
Get tests passing on macOS 13

macOS 13 uses NSTaggedPointerString for short CFStrings which means the retain counts aren't meaningful. Increasing the length of the strings avoids this.

Empty arrays also seem to refer to a shared constant object that doesn't have meaningful retain counts either.

Fixes #597
2023-06-20 16:01:13 +02:00
Jeff Muizelaar d10ad8dead Get tests passing on macOS 13
macOS 13 uses NSTaggedPointerString for short CFStrings
which means the retain counts aren't meaningful. Increasing the length
of the strings avoids this.

Empty arrays also seem to refer to a shared constant object that
doesn't have meaningful retain counts either.

Fixes #597
2023-06-20 09:49:19 -04:00
bors-servo 133d7efd3c Auto merge of #599 - michaelwright235:fix_unichar, r=jdm
sys: Move UniChar type back to string module

Fixes a semver breakage caused by servo#575
2023-06-20 14:12:40 +02:00
michaelwright235 4938a33fdb sys: Move UniChar type back to string module
Fixes a semver breakage
2023-06-20 13:23:36 +03:00
bors-servo cf25b7d943 Auto merge of #598 - jrmuizel:fix-url, r=mstange
Reexpose CFURL[Start|Stop]AccessingSecurityScopedResource

This fixes a semver breakage.
2023-06-19 21:25:44 +02:00
Jeff Muizelaar c9eac59a9c Reexpose CFURL[Start|Stop]AccessingSecurityScopedResource
This fixes a semver breakage caused by #576
2023-06-19 15:14:47 -04:00
bors-servo eb00adae0c Auto merge of #596 - nical:bump, r=jdm
Bump core-text, core-graphics and cocoa

We need the updated foreign-types dependency in Gecko.
2023-06-19 19:12:51 +02:00