You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, see #556, more work is needed to figure out how memory management should work.
can I call these methods without the Network crate on version 0.5.2?
You should be able to, you'll have to write the extern "C" definitions yourself, but it's a lot of work. For an API like nw_browser_create, to take a random example, the C header contains:
// --- Declare protocols that is used in Networkextern_protocol!(unsafetraitOS_nw_browser: NSObjectProtocol{}unsafeimplProtocolTypefor dyn OS_nw_browser{});typenw_browser_t = ProtocolObject<dynOS_nw_browser>;extern_protocol!(unsafetraitOS_nw_parameters: NSObjectProtocol{}unsafeimplProtocolTypefor dyn OS_nw_parameters{});typenw_parameters_t = ProtocolObject<dynOS_nw_parameters>;extern_protocol!(unsafetraitOS_nw_browse_descriptor: NSObjectProtocol{}unsafeimplProtocolTypefor dyn OS_nw_browse_descriptor{});typenw_browse_descriptor_t = ProtocolObject<dynOS_nw_browse_descriptor>;// --- Declare the actual function prototypeextern"C"{fnnw_browser_create(descriptor:&nw_browse_descriptor_t,parameters:Option<&nw_parameters_t>,) -> *mutnw_browser_t;}// --- Usage// SAFETY: Uses `Retained::from_raw` because of `NW_RETURNS_RETAINED`.let browser = unsafe{Retained::from_raw(nw_browser_create(descriptor, parameters))};
I think, at least, I doubt I'm familiar enough with the Network framework to help you out further, though feel free to ask!
NSNetService in Foundation has all been deprecated:
It's been succeeded by the Network Framework:
https://developer.apple.com/documentation/network?language=objc
I can only see a
NetworkExtension
autogenerated crate; which is completely different thanNetwork
Question:
Network
crate/feature since it's missingThe text was updated successfully, but these errors were encountered: