30 Commits

Author SHA1 Message Date
Mads Marquart f07616dfa3 Bump patch version in deprecated crates (#732) 2025-05-23 14:07:14 +00:00
Mads Marquart 61b90e72da Deprecate cocoa, cocoa-foundation and io-surface and link to objc2 crates instead (#731)
* Deprecate cocoa-foundation

* Deprecate cocoa

* Deprecate io-surface
2025-05-16 16:46:10 +00:00
alphaArgon 0e783c6355 Fix isEqualToString memory leak (#730) 2025-04-23 07:52:10 +00:00
Mads Marquart 6541d9a789 Fix invalid msg_send! (#702) 2024-08-13 12:04: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
Bruce Mitchener 31a92cd2fc Fix typos. (#689) 2024-07-20 10:26:35 +00:00
Bruce Mitchener 8d2b732db5 Remove usages of extern crate. (#672) 2024-05-27 06:40:54 +00:00
George Burton abbcc1eea5 Update bitflags to 2.2.1 (#549) 2024-04-09 08:47:41 +00:00
Dirkjan Ochtman 9721646053 foundation: remove optional chrono dependency (#666)
* foundation: remove optional chrono dependency

* Bump version numbers for semver-incompatible changes
2024-04-08 10:20:45 +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
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
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
Bruce Mitchener 18df9aafe7 Some clippy fixes. (#624) 2023-08-03 14:20:26 +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
michaelwright235 6b252cf1fc cocoa-foundation: Get rid of anonymous parameter
It's an error since Rust 2018.
2023-06-07 02:01:50 +03:00
George Burton 6215a8bb2b cocoa-foundation crate does not depend on foreign-types 2023-04-25 22:33:18 +01:00
George Burton 6ddf5cadcc Update foreign-types crate to v0.5 2023-04-25 22:15:52 +01:00
Alex Touchet 1632edee66 Use SPDX license format 2023-04-02 22:43:22 -07:00
Nabil Elqatib 8d3c2cd870 Update Cargo.toml
Following this change https://github.com/servo/core-foundation-rs/commit/6e78ddfb8a18b2e0f88c330e1a08c7c1f8c6a71e
2022-02-07 21:47:39 +01:00
Nabil Elqatib 6e78ddfb8a Update cocoa-foundation/src/foundation.rs 2021-11-18 14:52:36 +01:00
Nabil Elqatib e07fe2713e Update cocoa-foundation/src/foundation.rs 2021-11-18 14:06:09 +01:00
Nabil Elqatib bcea771dae Update cocoa-foundation/src/foundation.rs
Fix method name
2021-11-18 14:04:47 +01:00
Nabil Elqatib 46a3b04936 Update cocoa-foundation/src/foundation.rs
Delete default implementation
2021-11-18 14:02:10 +01:00
Nabil Elqatib e8fb7ada2d Add ProcessInfo.systemUptime implemention 2021-11-16 11:25:43 +01:00
Ignacio Casal Quinteiro 942e85ce41 foundation: add bundleIdentifier and resourcePath properties
Adds the bundleIdentifier and resourcePath properties to the NSBundle
bindings
2021-05-10 16:37:31 +02:00
Jeff Muizelaar edb7a8c7fc Add cocoa-foundation crate
This should let gfx-metal-rust avoid depending on core-graphics
2020-07-17 22:48:21 -04:00