Skip to main content

Module dev_ack

Module dev_ack 

Source
Expand description

#3478: the [dev] acknowledgements of remote-only bindings.

Some Cloudflare bindings have no local simulation: under bynk dev, a call runs on the developer’s Cloudflare account and may incur charges. bynk dev does not block such a call. It warns once, on the first one, unless the project has acknowledged it in bynk.toml:

[dev]
ai = "allow"

One mechanism serves every such binding kind: a RemoteKind names the [dev] key and the variable bynk dev hands to wrangler dev (as --var) for an acknowledged kind, which the kind’s provider reads to stay quiet. Vectorize and AI Search add one entry each. No tooling here states a price, an allowance or which operations are billed: the warning links to Cloudflare’s own pages.

Re-exports§

pub use crate::env_protocol::DEV as DEV_VAR;

Structs§

RemoteKind
A binding kind with no local simulation under bynk dev.

Constants§

ALLOW
The one value an acknowledgement takes.
REMOTE_KINDS
The remote-only binding kinds, by [dev] key.

Functions§

dev_acks_from
The remote-only kinds [dev] acknowledges. Any other value than "allow", for a known key, is an error.
try_read_dev_acks
try_read_dev_acks_with, reading bynk.toml from disk.
try_read_dev_acks_with
Read bynk.toml’s [dev] acknowledgements, honouring overlay. No manifest, or no [dev] table, acknowledges nothing.