--generate-stubs files shouldn't contain 'DO NOT EDIT'

Open
#64 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
63/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
go, rust, wasm
Domain
cli, tooling

Research direction

Start by locating the wit-bindgen-go handling for --generate-stubs and the code that emits the "Generated by 'wit-bindgen'" header. Compare generated files for exported and non-exported methods or resources, then verify that only non-export files contain the "DO NOT EDIT!" text.

Written by the indexing model from the issue text.

Description

If a user wants to generate bindings for exported methods/resources, it is confusing to have Generated by 'wit-bindgen' {version}. DO NOT EDIT!. wit-bindgen-go should have logic that ensures this is only added to non-export files.

Dominant language
Rust
Stars
18
Forks
8
Avg merge
6h 57m
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bytecodealliance/componentize-go

All issues in bytecodealliance/componentize-go

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.