···237237 /// - `uses_javascript_externals: true` the function is using JavaScript
238238 /// external code.
239239 uses_javascript_externals: bool,
240240+ /// Set to `true` if the const/function is defined using Cranelift external
241241+ /// code. That means that the function will use Cranelift code through FFI when
242242+ /// compiled for the Cranelift target.
243243+ uses_cranelift_externals: bool,
240244 /// Whether the function can be called on the Erlang target, either due to a
241245 /// pure Gleam implementation or an implementation that uses some Erlang
242246 /// externals.
···245249 /// to a pure Gleam implementation or an implementation that uses some
246250 /// JavaScript externals.
247251 can_run_on_javascript: bool,
252252+ /// Whether the function can be called on the Cranelift target, either due to a
253253+ /// pure Gleam implementation or an implementation that uses some Cranelift
254254+ /// externals.
255255+ can_run_on_cranelift: bool,
248256}
249257250258impl ImplementationsInterface {
···262270 gleam,
263271 uses_erlang_externals,
264272 uses_javascript_externals,
265265-273273+ uses_cranelift_externals,
266274 can_run_on_erlang,
267275 can_run_on_javascript,
276276+ can_run_on_cranelift,
268277 } = implementations;
269278270279 ImplementationsInterface {
271280 gleam: *gleam,
272281 uses_erlang_externals: *uses_erlang_externals,
273282 uses_javascript_externals: *uses_javascript_externals,
283283+ uses_cranelift_externals: *uses_cranelift_externals,
274284 can_run_on_erlang: *can_run_on_erlang,
275285 can_run_on_javascript: *can_run_on_javascript,
286286+ can_run_on_cranelift: *can_run_on_cranelift,
276287 }
277288 }
278289}