Expand description
typeway-macros — proc macros for the Typeway web framework.
Provides typeway_path! for ergonomic path type construction,
typeway_api! for defining complete API types with inline routes,
and #[handler] for validating handler functions at the definition site.
Macros§
- endpoint
- Defines an endpoint type with builder-style options.
- path
- Constructs a path type expression. Unlike
typeway_path!, this does NOT generate marker types — it references markers that were already defined by atypeway_path!ortypeway_api!invocation. - typeway_
api - Defines a complete API type with inline route definitions.
- typeway_
path - Defines a path type with auto-generated literal segment markers.
Attribute Macros§
- api_
description - Defines an API as a trait, generating endpoint types and a
Servesbridge. - documented_
handler - Extracts doc comments from a handler function and generates a companion
constof typeHandlerDoc(fromtypeway_core) containing the summary, description, operation ID, and tags. - handler
- Validates a handler function at its definition site.
Derive Macros§
- ToProto
Type - Derives a
ToProtoTypeimplementation for a struct with named fields. - Typestate
Builder - Derive a typestate builder for a struct.
- Typeway
Codec - Derive
TypewayEncodeandTypewayDecodefor a struct. - Typeway
Schema - Derives a
ToSchemaimplementation for a struct with named fields.