Skip to content

cargo-rbmt: move api files into package#86

Merged
tcharding merged 1 commit intorust-bitcoin:masterfrom
nyonson:move-api-to-package
Mar 10, 2026
Merged

cargo-rbmt: move api files into package#86
tcharding merged 1 commit intorust-bitcoin:masterfrom
nyonson:move-api-to-package

Conversation

@nyonson
Copy link
Copy Markdown
Collaborator

@nyonson nyonson commented Feb 19, 2026

The original push for this change was to address how api files were namespaced under the top level api/ dir, should it be with the package manifest name or match the package directory. This side steps the issue by just putting the api/ dir under the package directory. API files are now broken up by package.

Probably more helpfully though, this change allows a workspace and a single package repo (e.g. rust-psbt) to be treated the same, simplify configs and rbmt.

A possible downside to pushing the api files into the package directory is that they then get published by default. So a quick check is added to make sure a package manifest excludes the api/ dir.

Copy link
Copy Markdown
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 4977fc0

Will wait for @apoelstra before merging.

The original push for this change was to address how api files were
namespaced under the top level api/ dir, should it be with the package
manifest name or match the package directory. This side steps the
issue by just putting the api/ dir under the package directory. API files
are now broken up by package.

Probably more helpfully though, this change allows a workspace and a
single package repo to be treated the same, simplify configs and rbmt.

A possible downside to pushing the api files into the package directory
is that they then get published by default. So a quick check is added to
make sure a package manifest excludes the api/ dir.
@nyonson nyonson force-pushed the move-api-to-package branch from 4977fc0 to 8278a3e Compare March 10, 2026 18:55
@nyonson
Copy link
Copy Markdown
Collaborator Author

nyonson commented Mar 10, 2026

8278a3e: rebased

@tcharding
Copy link
Copy Markdown
Member

@apoelstra has had 3 weeks, going to go ahead and merge this. I'll just throw you under the bus @nyonson if this pisses him off ... just kidding.

Copy link
Copy Markdown
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 8278a3e

@tcharding tcharding merged commit 10982aa into rust-bitcoin:master Mar 10, 2026
2 checks passed
@apoelstra
Copy link
Copy Markdown
Member

utACK 8278a3e

Yeah, this seems reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants