Skip to content

Add env host function interface to docs generated from env.json #489

Open

Description

@leighmcculloch

In stellar/rs-soroban-env#613 we added an env.json file that describes all of the host functions.

We should publish this interface in the docs. It will be useful for developers making SDKs. And developers working at a lower level.

We can generate the docs page based off the env.json file.

Activity

  1. added
    question
    on Sep 20, 2023
  2. janewang commented on Apr 25, 2024

    @janewang
    Contributor

    @leighmcculloch Let's defer this to when Nando figure out how to generate docs from Github

  3. janewang commented on Apr 25, 2024

    @janewang
    Contributor

    @fnando We have needs to sync from Github to the docs in several other places fyi

  4. added and removed
    question
    on Jan 7, 2025
  5. added
    documentation
    on Jul 13, 2026
  6. ElliotFriend commented on Jul 13, 2026

    @ElliotFriend
    Contributor

    Hi @anupsdf 👋 I'm doing a triage pass over our open issues, and this one hasn't seen activity in a while. Two quick questions:

    • Is this still relevant / still on your radar?
    • Is there anything you need to move it forward — review, context, a decision, someone to pair with?

    If it's no longer on your plate, no worries at all — just say the word and we'll open it up for other contributors. If I don't hear back in a couple weeks, I'll free up the assignment so it doesn't look claimed.

  7. kaankacar commented on Sep 7, 2026

    @kaankacar
    Contributor

    🤖 Automated message from Kaan's Automated Triage Bot.

    I am looking at this issue now. I will report what I find.

  8. kaankacar commented on Sep 7, 2026

    @kaankacar
    Contributor

    🤖 Automated message from Kaan's Automated Triage Bot.

    Decision needed: do we publish a generated host function reference from env.json now, or keep it deferred?

    Jane deferred this in April 2024, pending a general GitHub-to-docs sync. The repo has no such sync today. The docs still have no host function list.

    What I checked in soroban-env-common/env.json (sha f9c50fc, read 2026-09-07):

    • 11 modules, 199 host functions.
    • Each function gives the export symbol, the name, the argument names and types, the return type, and doc text.
    • Some functions also give min_supported_protocol and max_supported_protocol.
    • The file is complete enough to render the page with no hand-written text.

    Today the docs only link to env.json, from Build Your Own SDK.

    Options:

    1. Generate the page at build time, like the CLI reference. docs/tools/cli/stellar-cli.mdx is a stub, and pnpm stellar-cli:build writes the real page in build.yml and the Dockerfile. I can copy that pattern.
    2. Use the same generator, but commit the output page. The site build then needs no second clone, and a bad upstream change cannot break the build.
    3. Keep it deferred until a general GitHub-to-docs sync exists.
    4. Close it, and point SDK authors at env.json directly.

    For option 1 or 2, please also say where the page goes. I suggest beside Environment Concepts.

    @kaankacar @ElliotFriend

  9. added
    bot:needs-decision
    on Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bot:needs-decisioncoredocumentationfeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions