m: Remove once_cell dependency
Removes the once_cell dependency, instead using std::sync::OnceLock and a minimal polyfill for std::sync::LazyLock, which may be stabilized soon (see rust-lang/rust#121377). This should not require a bump in MSRV, as OnceLock was stabilized in 1.70, which this crate is using.
This commit is contained in:
parent
990bbf178f
commit
352e70b8ac
14 changed files with 57 additions and 27 deletions
|
|
@ -1,3 +1,4 @@
|
|||
use crate::utils::Lazy;
|
||||
use icrate::AppKit::{NSBitmapImageRep, NSCursor, NSDeviceRGBColorSpace, NSImage};
|
||||
use icrate::Foundation::{
|
||||
ns_string, NSData, NSDictionary, NSNumber, NSObject, NSObjectProtocol, NSPoint, NSSize,
|
||||
|
|
@ -6,7 +7,6 @@ use icrate::Foundation::{
|
|||
use objc2::rc::Id;
|
||||
use objc2::runtime::Sel;
|
||||
use objc2::{msg_send_id, sel, ClassType};
|
||||
use once_cell::sync::Lazy;
|
||||
use std::ffi::c_uchar;
|
||||
use std::slice;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue