Email me

Crate features / objc2

Feature flags · objc2 0.6.5 · from crates.io 2026-10-24

objc2 features: what each one does, and the line to copy

Short answerobjc2 0.6.5 has 28 features. By default it turns on std; add default-features = false to start from nothing. It needs Rust 1.71 or newer.

Pick features

0.6.5latest version
28features
2optional dependencies
1.71MSRV (rust-version)

Every feature

FeatureIn defaultTurns on
allocobjc2-encode/alloc
catch-allexception
disable-encoding-assertionsnothing else (a switch the code checks)
exceptiondep:objc2-exception-helper
gnustep-1-7unstable-static-class, objc2-exception-helper?/gnustep-1-7
gnustep-1-8gnustep-1-7, objc2-exception-helper?/gnustep-1-8
gnustep-1-9gnustep-1-8, objc2-exception-helper?/gnustep-1-9
gnustep-2-0gnustep-1-9, objc2-exception-helper?/gnustep-2-0
gnustep-2-1gnustep-2-0, objc2-exception-helper?/gnustep-2-1
objc2-proc-macrosnothing else (a switch the code checks)
relax-sign-encodingnothing else (a switch the code checks)
relax-void-encodingnothing else (a switch the code checks)
stdyesalloc, objc2-encode/std
unstable-apple-newnothing else (a switch the code checks)
unstable-arbitrary-self-typesnothing else (a switch the code checks)
unstable-autoreleasesafenothing else (a switch the code checks)
unstable-coerce-pointeenothing else (a switch the code checks)
unstable-compiler-rtgnustep-1-7
unstable-darwin-objcnothing else (a switch the code checks)
unstable-gnustep-strict-apple-compatgnustep-1-7
unstable-objfwnothing else (a switch the code checks)
unstable-requires-macosnothing else (a switch the code checks)
unstable-static-classdep:objc2-proc-macros
unstable-static-class-inlinedunstable-static-class
unstable-static-seldep:objc2-proc-macros
unstable-static-sel-inlinedunstable-static-sel
unstable-winobjcgnustep-1-8
verifynothing else (a switch the code checks)

dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).

MSRV history

The minimum Rust version objc2 declares (rust-version), and the release that changed it:

  • 0.3.0-beta.5 (2023-02-07): Rust 1.60
  • 0.3.0-beta.3.patch-leaks (2023-03-13): no rust-version declared
  • 0.4.0 (2023-06-20): Rust 1.60
  • 0.6.0 (2025-01-22): Rust 1.71
  • 0.5.3 (2026-10-05): Rust 1.60
  • 0.6.5 (2026-10-05): Rust 1.71

Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p objc2 --precise <version>, or use resolver 3, which picks compatible versions for you.

More on objc2

Real downloads, dependents and alternatives: objc2 crate data (607K real downloads a day, 1,193 dependents).

docs.rs feature list · crates.io · license MIT · edition 2021

Up next

Before you depend on itobjc2 crate dataReal downloads, dependents, alternatives.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ