Skip to main content
Glama
toolchain.bzl1.33 kB
ArtifactToolchainInfo = provider(fields = { "promote": typing.Any, "publish": typing.Any, "generate_binary_metadata": typing.Any, "create_binary_archive": typing.Any, }) def artifact_toolchain_impl(ctx) -> list[[DefaultInfo, ArtifactToolchainInfo]]: """ A artifact toolchain to manage a compiled or built artifact through it's lifecycle This toolchain will empower targets to publish, deprecate, etc. """ return [ DefaultInfo(), ArtifactToolchainInfo( promote = ctx.attrs._promote, publish = ctx.attrs._publish, generate_binary_metadata = ctx.attrs._generate_binary_metadata, create_binary_archive = ctx.attrs._create_binary_archive, ), ] artifact_toolchain = rule( impl = artifact_toolchain_impl, attrs = { "_promote": attrs.dep( default = "prelude-si//artifact:promote.py", ), "_publish": attrs.dep( default = "prelude-si//artifact:publish.py", ), "_generate_binary_metadata": attrs.dep( default = "prelude-si//artifact:generate_binary_metadata.py", ), "_create_binary_archive": attrs.dep( default = "prelude-si//artifact:create_binary_archive.py", ), }, is_toolchain_rule = True, )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server