// Anchor for the `riantr/moonbit_image` import declared in the root
// moon.pkg. The gherkin_blackbox_test.mbt suite uses
// @moonbit_image.detect_format / @moonbit_image.ImageFormat::* /
// @moonbit_image.decode / etc. directly, but `moon check` runs in
// non-test mode and reports the import as unused without an explicit
// production-side reference.
//
// Keeping this anchor means the image codec stays linked into the
// published artifact (it surfaces as part of the @moonbit_labeler root
// namespace so downstream apps can `import "riantr/moonbit_labeler"`
// and reach `@moonbit_image.*`).
//
// The function itself is intentionally trivial — its only job is to
// give the compiler a concrete symbol that uses the package.

///|
pub fn image_package_anchor() -> Bool {
  // Touch the @moonbit_image API surface just enough that the
  // import is considered used. detect_format is the cheapest
  // function (no allocation, no decoding). We discard the result
  // — the only goal is the side effect of referencing the package.
  let _ = @moonbit_image.detect_format(b"")
  true
}