Skip to content

Rename examples/ to samples/ - #8

Merged
valenfys merged 1 commit into
mainfrom
rename-examples-to-samples
Sep 2, 2026
Merged

valenfys merged 1 commit into
mainfrom
rename-examples-to-samples

Conversation

@valenfys

@valenfys valenfys commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • examples/ is a Cargo-reserved directory name: .rs files placed directly under it are auto-discovered as example binary targets (cargo run --example). This repo's examples/ held only sample RAW photo files + an attribution doc for the README walkthrough, no Rust code — renamed to samples/ to avoid the collision.
  • Updates all references: README usage walkthrough, Cargo.toml's exclude globs, .gitignore.

Test plan

  • grep -rn "examples/raw" across .md/.toml/.yml files returns nothing.
  • cargo package --list still correctly excludes the sample RAW binaries from the published crate (samples/raw/ATTRIBUTION.md included, the .CR2/.NEF/.RW2/.ARW files excluded).

🤖 Generated with Claude Code

https://claude.ai/code/session_01AKmYgyL2p8FVFu9Wx13t4K

examples/ has a reserved meaning in Cargo -- it auto-discovers .rs
files placed directly under it as example binary targets
(cargo run --example). This directory only ever held sample RAW
photo files for the README walkthrough, no Rust code, so rename it
to samples/ to avoid the naming collision.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKmYgyL2p8FVFu9Wx13t4K
@valenfys
valenfys merged commit 413ddd7 into main Sep 2, 2026
3 checks passed
@valenfys
valenfys deleted the rename-examples-to-samples branch September 2, 2026 14:08
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.

1 participant