kw extern
Reserved keyword
The list of words: §1.4
Syntax
Service = [ "extern" ] "service" Ident "{" { { Attr } RpcSig } "}" ;Grammar: App. A
Defined in
- 10.1 Services — A service declares a contract
- 16.1 C — import c reads a header through libclang at compile time.
- 16.3 gRPC and protobuf — import proto "payments.proto" generates an extern service and types; calls are as to ordinary services through connect.
- 1.4 Keywords — Reserved (cannot be used as names)
Examples
import c "zlib.h" { deflate, inflate, z_stream }
extern c fn getpid() -> i32
export c fn oxl_handle(req: *u8, len: usize) -> i32 { … }— 16.1 C
Related diagnostics
duplicate-impl, impl-signature-mismatch, missing-impl, missing-rpc-impl, unknown-rpc, ffi-import, import-skip