Skip to content

Add release workflow and fallible file server creation - #26

Merged
alshdavid merged 2 commits into
mainfrom
file_server
Oct 17, 2026
Merged

alshdavid merged 2 commits into
mainfrom
file_server

Conversation

@alshdavid

Copy link
Copy Markdown
Collaborator
  • Add .github/workflows/release.yaml to auto-increment the version, run test/format/lint/check, publish a GitHub release, and publish the crate to crates.io.
  • Make file_server::create return crate::Result<HandleFunc>, precomputing the fallback extension once and propagating errors instead of panicking inside the handler.
  • Reorganize file_server.rs into a file_server/ module with mod.rs, and reuse BODY_BUFFER_SIZE for the etag buffer.
  • Update all examples to handle the new Result from create and pin the crate version to 0.0.0-local for release-time substitution.
  • Note: publish_crates_io depends on a build job that does not exist in the workflow.

@alshdavid
alshdavid merged commit 9c2715d into main Oct 17, 2026
4 checks passed
@alshdavid
alshdavid deleted the file_server branch October 17, 2026 07:38
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