Skip to content

Re-export Value - #33

Merged
webmaster128 merged 1 commit into
mainfrom
export-value
Oct 15, 2026
Merged

webmaster128 merged 1 commit into
mainfrom
export-value

Conversation

@webmaster128

Copy link
Copy Markdown
Owner

Closes #32

Bufany::value() returns a Value, but src/lib.rs didn't re-export the type. Callers outside the crate couldn't name it in a signature or match on its variants by path.

  • Add Value to the pub use crate::bufany::{...} re-exports
  • Add a doctest to Bufany::value() that imports anybuf::Value, so the export is covered by a test

The change only adds to the API.

cargo test, cargo test --no-default-features, cargo clippy --all-targets -- -D warnings and cargo fmt --check pass locally.

🤖 Generated with Claude Code

Bufany::value() returns a Value, but the type was not reachable from
outside the crate, so callers could not name it or match on its variants
by path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@webmaster128
webmaster128 merged commit 6c9aadd into main Oct 15, 2026
20 checks passed
@webmaster128
webmaster128 deleted the export-value branch October 15, 2026 08:27
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.

Re-export bufany::Value so the return type of Bufany::value() can be named

1 participant