Expand description
A proc-macro for writing functions in Rust that can be called from Starlark.
Macros§
- starlark_
attrs - Generate
{has,get,dir}_attrin theStarlarkValueimpl block that proxy to the ones generated byderive(StarlarkAttrs)
Attribute Macros§
- starlark_
internal_ bc - Stubs for Starlark bytecode interpreter.
- starlark_
internal_ vtable - starlark_
module - Write Starlark modules concisely in Rust syntax.
- starlark_
pagable_ typetag - Starlark-flavored
#[pagable_typetag]. On a trait: emits a sealed marker. Onimpl Trait for Foo: emits the recovery bridge and asserts the marker. - starlark_
value - Generate missing elements of
StarlarkValuetrait when this attribute is applied to an impl block ofStarlarkValue. - type_
matcher - Attribute macro for
impl TypeMatcher for Xblocks.
Derive Macros§
- Alloc
Frozen Value - Derive the
AllocFrozenValuetrait. - Alloc
Value - Derive the
AllocValuetrait. - Coerce
- Freeze
- Derive the
Freezetrait. - NoSerialize
- Derive the
NoSerializetrait for serde. - Provides
Static Type - Derive the
ProvidesStaticTypetrait. Requires the type has no type arguments, no constant arguments, and at most one lifetime argument. - Starlark
Attrs - Derive accessor methods that are designed to be used from {has,get,dir}_attr in an
impl StarlarkValueblock. - Starlark
Deserialize - Derive the
StarlarkDeserializetrait. - Starlark
Pagable - Derive both
StarlarkSerializeandStarlarkDeserializetraits. - Starlark
Pagable Panic - Derive panicking
StarlarkSerializeandStarlarkDeserializeimpls. - Starlark
Pagable ViaPagable - Derive
StarlarkSerialize/StarlarkDeserializeimpls that bridge to the type’spagable::PagableSerialize/pagable::PagableDeserializeimpls. - Starlark
Serialize - Derive the
StarlarkSerializetrait. - Starlark
Type Repr - Derive the
StarlarkTypeReprtrait. - Trace
- Derive the
Tracetrait. - Unpack
Value - Derive the
UnpackValuetrait. - Visit
Span Mut