zhoujiaweii
7342edde37
chore: remove redundant word in comment ( #740 )
...
Signed-off-by: zhoujiaweii <zjwustc@outlook.com >
2025-08-29 11:00:01 +00:00
Bruce Mitchener
fb71d45b30
Enable clippy, suppress lots, fix a couple. ( #703 )
...
This enables clippy in CI and suppresses most of the existing
warnings. We can drill down and fix those later, but this will
help start getting things under control.
2024-08-13 04:25:49 +00:00
Bruce Mitchener
39a39555c0
Use workspace inheritance. ( #701 )
...
Consolidate package configuration where possible. This also
removes the `homepage` key as it only points to the repository
so isn't providing anything additional.
Use workspace dependencies for the crates provided by the workspace
and used within the workspace. This centralizes the version number
maintenance a bit.
2024-08-12 07:41:37 +00:00
Bruce Mitchener
9f33b121fb
Use core::ffi over std::os::raw and libc::c_* ( #692 )
...
`core::ffi` is the preferred way to access these type definitions.
Begin removing uses of the versions from `libc`.
`libc::c_void` is not exactly the same as `core::ffi::c_void` but
some code has tried using them interchangeably (like in io-surface).
`libc::size_t` is `usize` on all current platforms.
2024-08-11 20:24:22 +00:00
Bruce Mitchener
42ec06106d
Bump MSRV to 1.65 ( #694 )
...
This will allow us to use `dep:` syntax and also move to using types
from `core::ffi` as well as some other more modern constructs.
2024-08-11 16:15:49 +00:00
Ngo Iok Ui (Wu Yu Wei)
652bab0a62
Bump version of core-foundation-sys to 0.8.7 ( #683 )
...
* Bump version of core-foundation-sys to 0.9.0
* Bump patch version instead
2024-08-09 16:47:06 +00:00
simlay
f49a4a5f91
Fix rustfmt for ci ( #680 )
2024-05-23 02:16:38 +00:00
simlay
fb8fd65eef
Add visionOS and watchOS to linking to CoreFoundation framework ( #679 )
2024-05-22 16:06:06 +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
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
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
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
michaelwright235
695f9500d6
Bump core-foundation-sys to 0.8.5
2023-06-29 01:12:16 +03: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
michaelwright235
4938a33fdb
sys: Move UniChar type back to string module
...
Fixes a semver breakage
2023-06-20 13:23:36 +03: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
Michael Wright
5aa2012e8d
Merge branch 'master' into bh
2023-06-19 01:33:55 +03:00
bors-servo
614b8d9b11
Auto merge of #595 - michaelwright235:url_enum, r=jdm
...
sys: Introduce CFURLEnumerator
Implements CFURLEnumerator related functions and constants.
2023-06-19 00:25:56 +02:00
michaelwright235
5ded43c6be
sys: Introduce CFURLEnumerator
...
Implements CFURLEnumerator related functions and constants.
2023-06-19 00:55:20 +03:00
michaelwright235
d0d9362372
sys: Introduce CFBinaryHeap
...
Implements CFBinaryHeap related functions and constants.
2023-06-19 00:35:57 +03:00
michaelwright235
f1022e6be8
sys: Introduce CFBitVector
...
Implements CFBitVector and CFMutableBitVector related functions.
2023-06-19 00:25:07 +03:00
michaelwright235
91d8daae0e
sys: Introduce CFBag
...
Implements CFBag related functions and constants.
2023-06-18 23:41:20 +03:00
michaelwright235
f904d7f4ad
sys: Introduce CFTree
...
Implements CFTree and its related stuff. All functions are sorted
in Apple docs order.
2023-06-18 22:59:44 +03:00
bors-servo
7fe0d59122
Auto merge of #589 - michaelwright235:file_security, r=jdm
...
sys: Introduce CFFileSecurity
Implements CFFileSecurity functions and constants. Some external functions are commented out because of a lack of `uid_t`, `gid_t` and `acl_t` implementations.
2023-06-18 21:34:28 +02:00
bors-servo
9236908e07
Auto merge of #588 - michaelwright235:fix, r=jdm
...
sys: Fix CFComparatorFunction and move it to `base` module
CFComparatorFunction declaration was missing one argument (void *context).
Here's its declaration from CFBase.h:
```c
typedef CFComparisonResult (*CFComparatorFunction)(const void *val1, const void *val2, void *context);
```
And its declaration in array.rs:
```rust
pub type CFComparatorFunction = extern "C" fn(val1: *const c_void, val2: *const c_void) -> CFComparisonResult;
```
Since it's declared in CFBase.h, I moved it to `base` module.
2023-06-18 21:33:09 +02:00
michaelwright235
03832a5531
sys: Implement CFPreferences functions
...
Adds `preferences` module corresponding to `CFPreferences.h`.
Implements its external functions and constants.
2023-06-18 20:23:13 +03:00
michaelwright235
4bd380aa1e
sys: Introduce CFFileSecurity
...
Implements CFFileSecurity functions and constants.
2023-06-18 19:52:23 +03:00
michaelwright235
34788869ec
sys: Fix CFComparatorFunction and move it to base module
...
CFComparatorFunction declaration was missing one argument. It's
also declared in `CFBase.h`, so I moved it to `base` module.
2023-06-18 19:04:31 +03:00
bors-servo
52858f81bb
Auto merge of #587 - michaelwright235:str_tkn2, r=jdm
...
sys: Introduce CFStringTokenizer
Implements `CFStringTokenizer` with all its functions and constants sorted in Apple docs order
2023-06-18 15:31:18 +02:00
bors-servo
7480db7269
Auto merge of #586 - michaelwright235:num_fmt, r=jdm
...
sys: Introduce CFNumberFormatter
Implements `CFNumberFormatter` with all its functions and constants sorted in Apple docs order
2023-06-18 15:28:16 +02:00
bors-servo
fd6dbc4ead
Auto merge of #585 - michaelwright235:date_fmt, r=jdm
...
sys: Introduce CFDateFormatter
Implements `CFDateFormatter` with all its functions and constants sorted in Apple docs order.
2023-06-18 15:24:46 +02:00
bors-servo
bb75f63865
Auto merge of #584 - michaelwright235:calendar, r=jdm
...
sys: Introduce CFCalendar
Implements CFCalendar with all its functions and constants sorted in Apple docs order.
2023-06-18 15:21:20 +02:00
michaelwright235
a37a763c7c
sys: Introduce CFStringTokenizer
...
Implements `CFStringTokenizer` with all its functions and constants
sorted in Apple docs order
2023-06-18 00:46:51 +03:00
michaelwright235
be4dcfdf34
sys: Introduce CFNumberFormatter
...
Implements `CFNumberFormatter` with all its functions and constants sorted
in Apple docs order
2023-06-15 21:29:51 +03:00
michaelwright235
3354db29ad
sys: Introduce CFDateFormatter
...
Implements `CFDateFormatter` with all its functions and constants
sorted in Apple docs order.
2023-06-15 21:28:23 +03:00
michaelwright235
3de7764350
sys: stream: Uncomment CFSocket related functions
2023-06-15 21:26:37 +03:00
michaelwright235
45696edfd5
sys: Introduce CFCalendar
...
Implements CFCalendar with all its functions and constants sorted in Apple
docs
order.
2023-06-15 21:24:44 +03:00
michaelwright235
b4c8c1f2d6
sys: Introduce CFSocket
...
Implements CFSocket with all its functions and constants sorted in Apple
docs order.
2023-06-15 15:31:59 +03:00
michaelwright235
40b20b9b96
sys: base: Add UInt16 type
2023-06-15 15:03:29 +03:00
michaelwright235
021d4e5fe7
sys: Introduce CFPlugIn
...
Implements CFPlugIn and CFPlugInInstance (CFPlugIn.h) with all their
functions and constants. They're sorted in Apple docs order.
2023-06-09 20:44:20 +03:00
bors-servo
f80c63a60a
Auto merge of #579 - michaelwright235:stream, r=jdm
...
sys: Introduce CFStream
Implements `stream` module containing CFStream related functions and constants. Also uncomments some functions of `propertylist` that uses CFStream.
2023-06-06 14:23:47 +02:00
michaelwright235
fab893278d
sys: attributed_string: Uncomment CFAttributedStringGetMutableString
...
because CFMutableStringRef has been implemented.
2023-06-06 13:35:40 +03:00
michaelwright235
8d5e5320ce
sys: Uncomment CFNotificationName constants
...
because this is implemented now.
2023-06-06 13:33:59 +03:00
michaelwright235
7053c69118
sys: propertylist: Uncomment functions
...
containing CFWriteStreamRef and CFReadStreamRef
2023-06-06 13:27:25 +03:00
michaelwright235
cca1c3302a
sys: Introduce CFStream
...
Implement CFReadStream and CFWriteStream with all its functions in a
new `stream` module.
2023-06-06 13:27:25 +03:00
bors-servo
084959318f
Auto merge of #578 - michaelwright235:nc, r=jdm
...
sys: Implement CFNotificationCenter
Implements `CFNotificationCenter` in `notification_center` module with all its constants and functions ordered in Apple docs order.
2023-06-02 19:10:03 +02:00