Allow providing a directory of static files

Open
#480 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
backend

Research direction

Start by locating the static_files! macro and reading how it currently ingests a single file; the issue does not name a file or test. Then identify existing tests or examples for static files and use them to check directory support. Done means files in a provided directory are ingested as static files, with the existing single-file behavior preserved.

Written by the indexing model from the issue text.

Description

enhancement

Currently, our static_files! macro allows only to provide a single file at a time, which doesn't scale well. We should expand it with the possibility to provide a directory, from which all files should be ingested as static ones.

Dominant language
Rust
Stars
1.1k
Forks
57
Avg merge
17h 39m
Merged PRs (30d)
12

Getting set up

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 cot-rs/cot

All issues in cot-rs/cot

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.